This commit is contained in:
sunkaixuan
2018-11-13 00:37:32 +08:00
parent c70fd929e7
commit 3055a3de16

View File

@@ -27,6 +27,7 @@ namespace SqlSugar
public MappingTableList OldMappingTableList { get; set; } public MappingTableList OldMappingTableList { get; set; }
public bool IsAs { get; set; } public bool IsAs { get; set; }
public bool IsEnableDiffLogEvent { get; set; } public bool IsEnableDiffLogEvent { get; set; }
public DiffLogModel diffModel { get; set; }
public virtual int ExecuteCommand() public virtual int ExecuteCommand()
{ {
PreToSql(); PreToSql();
@@ -35,7 +36,8 @@ namespace SqlSugar
string sql = UpdateBuilder.ToSqlString(); string sql = UpdateBuilder.ToSqlString();
ValidateVersion(); ValidateVersion();
RestoreMapping(); RestoreMapping();
return this.Ado.ExecuteCommand(sql, UpdateBuilder.Parameters == null ? null : UpdateBuilder.Parameters.ToArray()); var result= this.Ado.ExecuteCommand(sql, UpdateBuilder.Parameters == null ? null : UpdateBuilder.Parameters.ToArray());
return result;
} }
public bool ExecuteCommandHasChange() public bool ExecuteCommandHasChange()