mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update Diff Log
This commit is contained in:
@@ -54,6 +54,8 @@ namespace OrmTest.Demo
|
||||
var sql = it.Sql;
|
||||
var parameter = it.Parameters;
|
||||
var data = it.BusinessData;
|
||||
var type = it.DiffType;
|
||||
var time = it.Time;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -484,8 +484,21 @@ namespace SqlSugar
|
||||
}
|
||||
result.Add(item);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return result;
|
||||
else {
|
||||
DiffLogTableInfo diffTable = new DiffLogTableInfo();
|
||||
diffTable.TableName = this.EntityInfo.DbTableName;
|
||||
diffTable.TableDescription = this.EntityInfo.TableDescription;
|
||||
diffTable.Columns = this.EntityInfo.Columns.Where(it => it.IsIgnore == false).Select(it => new DiffLogColumnInfo()
|
||||
{
|
||||
ColumnDescription = it.ColumnDescription,
|
||||
ColumnName = it.DbColumnName,
|
||||
Value = it.PropertyInfo.GetValue(this.InsertObjs.Last(), null)
|
||||
}).ToList();
|
||||
return new List<DiffLogTableInfo>() { diffTable };
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
Reference in New Issue
Block a user