mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Modifying error Description
This commit is contained in:
@@ -1281,7 +1281,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