mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -99,6 +99,7 @@ namespace SqlSugar
|
||||
diffModel = new DiffLogModel();
|
||||
this.IsEnableDiffLogEvent = true;
|
||||
diffModel.BusinessData = businessData;
|
||||
diffModel.DiffType = DiffType.update;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@@ -13,6 +13,7 @@ namespace SqlSugar
|
||||
public string Sql { get; set; }
|
||||
public TimeSpan? Time { get; set; }
|
||||
public object BusinessData { get; set; }
|
||||
public DiffType DiffType { get; set; }
|
||||
}
|
||||
public class DiffLogTableInfo
|
||||
{
|
||||
|
14
Src/Asp.Net/SqlSugar/Entities/DiffType.cs
Normal file
14
Src/Asp.Net/SqlSugar/Entities/DiffType.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
public enum DiffType
|
||||
{
|
||||
insert=0,
|
||||
update=1,
|
||||
delete=2
|
||||
}
|
||||
}
|
@@ -79,6 +79,7 @@
|
||||
<Compile Include="Entities\ConditionalModel.cs" />
|
||||
<Compile Include="Entities\ConnMoreSettings.cs" />
|
||||
<Compile Include="Entities\DiffLogModel.cs" />
|
||||
<Compile Include="Entities\DiffType.cs" />
|
||||
<Compile Include="Entities\MapperCache.cs" />
|
||||
<Compile Include="Entities\SlaveConnectionConfig.cs" />
|
||||
<Compile Include="Enum\ConditionalType.cs" />
|
||||
|
Reference in New Issue
Block a user