This commit is contained in:
sunkaixuan
2018-11-13 02:00:47 +08:00
parent bd6de96e4e
commit 61b3be0f8f
4 changed files with 17 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ namespace SqlSugar
diffModel = new DiffLogModel();
this.IsEnableDiffLogEvent = true;
diffModel.BusinessData = businessData;
diffModel.DiffType = DiffType.update;
return this;
}

View File

@@ -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
{

View 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
}
}

View File

@@ -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" />