update UnitOfWorkManager demo

This commit is contained in:
28810
2020-05-01 06:41:58 +08:00
parent 0ffea2b871
commit bae0f1c63e
3 changed files with 35 additions and 4 deletions

View File

@ -28,6 +28,9 @@ namespace aspnetcore_transaction
.UseMonitorCommand(cmd => Trace.WriteLine(cmd.CommandText))
.UseNoneCommandParameter(true)
.Build();
Fsql.Aop.TraceBefore += (_, e) => Trace.WriteLine($"----TraceBefore---{e.Identifier} {e.Operation}");
Fsql.Aop.TraceAfter += (_, e) => Trace.WriteLine($"----TraceAfter---{e.Identifier} {e.Operation} {e.Remark} {e.Exception?.Message} {e.ElapsedMilliseconds}ms\r\n");
}
public IConfiguration Configuration { get; }