mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-25 02:09:12 +08:00
Add virtual
This commit is contained in:
@@ -102,7 +102,7 @@ namespace SqlSugar
|
||||
{
|
||||
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);
|
||||
}
|
||||
@@ -232,7 +232,7 @@ namespace SqlSugar
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user