mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 18:29:13 +08:00
Add virtual
This commit is contained in:
@@ -102,7 +102,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return Context.Queryable<T>().Single(whereExpression);
|
return Context.Queryable<T>().Single(whereExpression);
|
||||||
}
|
}
|
||||||
public T GetFirst(Expression<Func<T, bool>> whereExpression)
|
public virtual T GetFirst(Expression<Func<T, bool>> whereExpression)
|
||||||
{
|
{
|
||||||
return Context.Queryable<T>().First(whereExpression);
|
return Context.Queryable<T>().First(whereExpression);
|
||||||
}
|
}
|
||||||
@@ -232,7 +232,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return Context.Queryable<T>().SingleAsync(whereExpression);
|
return Context.Queryable<T>().SingleAsync(whereExpression);
|
||||||
}
|
}
|
||||||
public Task<T> GetFirstAsync(Expression<Func<T, bool>> whereExpression)
|
public virtual Task<T> GetFirstAsync(Expression<Func<T, bool>> whereExpression)
|
||||||
{
|
{
|
||||||
return Context.Queryable<T>().FirstAsync(whereExpression);
|
return Context.Queryable<T>().FirstAsync(whereExpression);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user