mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 12:47:57 +08:00
Synchronization code
This commit is contained in:
parent
725994008b
commit
cc7d872735
@ -153,7 +153,7 @@ namespace SqlSugar
|
|||||||
var pkInfos = this.Context.EntityMaintenance.GetEntityInfo<T>().Columns.Where(it => it.IsPrimarykey);
|
var pkInfos = this.Context.EntityMaintenance.GetEntityInfo<T>().Columns.Where(it => it.IsPrimarykey);
|
||||||
if (whereExpression==null&&!pkInfos.Any())
|
if (whereExpression==null&&!pkInfos.Any())
|
||||||
{
|
{
|
||||||
Check.Exception(true, "Need primary key or WhereColumn");
|
Check.ExceptionEasy(true, "Need primary key or WhereColumn", "使用Storageable实体需要主键或者使用WhereColumn指定条件列");
|
||||||
}
|
}
|
||||||
if (whereExpression == null && pkInfos.Any())
|
if (whereExpression == null && pkInfos.Any())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user