You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
public
class
CurdAfterEventArgs
:
CurdBeforeEventArgs
{
public
CurdAfterEventArgs
(
CurdBeforeEventArgs
before
,
Exception
exception
,
object
executeResult
)
:
base
(
before
.
Identifier
,
before
.
StopwatchInternal
,
before
.
EntityType
,
before
.
Table
,
before
.
CurdType
,
before
.
Sql
,
before
.
DbParms
,
before
.
States
)
{
this
.
Exception
=
exception
;
this
.
ExecuteResult
=
executeResult
;
this
.
Stopwatch
.
Stop
(
)
;
}
/// <summary>
/// 发生的错误
/// </summary>
public
Exception
Exception
{
get
;
}
/// <summary>
/// 执行SQL命令,返回的结果
/// </summary>
public
object
ExecuteResult
{
get
;
}
/// <summary>
/// 耗时(单位:Ticks)
/// </summary>
public
long
ElapsedTicks
=>
this
.
Stopwatch
.
ElapsedTicks
;
/// <summary>
/// 耗时(单位:毫秒)
/// </summary>
public
long
ElapsedMilliseconds
=>
this
.
Stopwatch
.
ElapsedMilliseconds
;
}
#endregion
#region SyncStructureBefore/After
public
class
SyncStructureBeforeEventArgs
:
EventArgs
{
public
SyncStructureBeforeEventArgs
(
Type
[
]
entityTypes
)
:
this
(
Guid
.
NewGuid
(
)
,
new
Stopwatch
(
)
,
entityTypes
,
new
Dictionary
<
string
,
object
>
(
)
)