Add Obsolete

This commit is contained in:
SUNKAIXUAN 2021-03-06 17:21:10 +08:00
parent 12b50d4c9f
commit 742f20ae2c
3 changed files with 9 additions and 2 deletions

View File

@ -148,7 +148,7 @@ namespace OrmTest
}
}
})
.ExecuteReturnPrimaryKey();
.ExecuteCommand();
var list = db.Queryable<Country>()
.Mapper(it => it.Provinces, it => it.Provinces.First().CountryId)

View File

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

View File

@ -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();
}
}