mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
-
This commit is contained in:
@@ -363,7 +363,9 @@ namespace SqlSugar
|
||||
public virtual T Single(Expression<Func<T, bool>> expression)
|
||||
{
|
||||
_Where(expression);
|
||||
return Single();
|
||||
var result=Single();
|
||||
this.QueryBuilder.WhereInfos.Remove(this.QueryBuilder.WhereInfos.Last());
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual T First()
|
||||
@@ -387,7 +389,9 @@ namespace SqlSugar
|
||||
public virtual T First(Expression<Func<T, bool>> expression)
|
||||
{
|
||||
_Where(expression);
|
||||
return First();
|
||||
var result= First();
|
||||
this.QueryBuilder.WhereInfos.Remove(this.QueryBuilder.WhereInfos.Last());
|
||||
return result;
|
||||
}
|
||||
|
||||
public virtual bool Any(Expression<Func<T, bool>> expression)
|
||||
|
Reference in New Issue
Block a user