mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Code optimization
This commit is contained in:
@@ -580,7 +580,7 @@ namespace SqlSugar
|
||||
}
|
||||
else if (result.Count == 2)
|
||||
{
|
||||
Check.Exception(true, ".Single() result must not exceed one . You can use.First()");
|
||||
Check.Exception(true,ErrorMessage.GetThrowMessage(".Single() result must not exceed one . You can use.First()","使用single查询结果集不能大于1,适合主键查询,如果大于1你可以使用Queryable.First"));
|
||||
return default(T);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user