Browse Source

-

pull/12/MERGE
sunkaixuan 6 years ago
parent
commit
61b3be0f8f
  1. 1
      Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs
  2. 1
      Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs
  3. 14
      Src/Asp.Net/SqlSugar/Entities/DiffType.cs
  4. 1
      Src/Asp.Net/SqlSugar/SqlSugar.csproj

1
Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableProvider.cs

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

1
Src/Asp.Net/SqlSugar/Entities/DiffLogModel.cs

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

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

1
Src/Asp.Net/SqlSugar/SqlSugar.csproj

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

Loading…
Cancel
Save