mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add Obsolete
This commit is contained in:
parent
12b50d4c9f
commit
742f20ae2c
@ -148,7 +148,7 @@ namespace OrmTest
|
||||
}
|
||||
}
|
||||
})
|
||||
.ExecuteReturnPrimaryKey();
|
||||
.ExecuteCommand();
|
||||
|
||||
var list = db.Queryable<Country>()
|
||||
.Mapper(it => it.Provinces, it => it.Provinces.First().CountryId)
|
||||
|
@ -72,8 +72,13 @@ namespace SqlSugar
|
||||
}
|
||||
return resul;
|
||||
}
|
||||
|
||||
[Obsolete("use ExecuteCommand")]
|
||||
public object ExecuteReturnPrimaryKey()
|
||||
{
|
||||
return ExecuteCommand();
|
||||
}
|
||||
|
||||
public object ExecuteCommand()
|
||||
{
|
||||
var isNoTrean = this.Context.Ado.Transaction == null;
|
||||
try
|
||||
|
@ -7,6 +7,8 @@ namespace SqlSugar
|
||||
{
|
||||
ISubInsertable<T> AddSubList(Expression<Func<T, object>> items);
|
||||
ISubInsertable<T> AddSubList(Expression<Func<T, SubInsertTree>> tree);
|
||||
[Obsolete("use ExecuteCommand")]
|
||||
object ExecuteReturnPrimaryKey();
|
||||
object ExecuteCommand();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user