mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +08:00
Update Insert dic
This commit is contained in:
parent
c24224c6a0
commit
25b785e9b7
@ -198,7 +198,7 @@ namespace SqlSugar
|
||||
|
||||
private void SetInsertItemByDic(int i, T item, List<DbColumnInfo> insertItem)
|
||||
{
|
||||
foreach (var column in item as Dictionary<string, object>)
|
||||
foreach (var column in (item as Dictionary<string, object>).OrderBy(it=>it.Key))
|
||||
{
|
||||
var columnInfo = new DbColumnInfo()
|
||||
{
|
||||
|
@ -280,7 +280,7 @@ namespace SqlSugar
|
||||
}
|
||||
private void SetUpdateItemByDic(int i, T item, List<DbColumnInfo> updateItem)
|
||||
{
|
||||
foreach (var column in item as Dictionary<string, object>)
|
||||
foreach (var column in (item as Dictionary<string, object>).OrderBy(it=>it.Key))
|
||||
{
|
||||
var columnInfo = new DbColumnInfo()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user