public async Task <System_User> FirstOrDefaultAsync(Expression <Func <System_User, bool> > expression) { return(await _excuteEntity.ExcuteAsync(async connection => { return await connection.QuerySet <System_User>() .Where(expression) .GetAsync(); })); }
public async Task <T> GetByIDAsync(TKey id) { return(await _excuteEntity.ExcuteAsync(async connection => { return await connection.QuerySet <T>() .Where(x => x.PKID.Equals(id)) .GetAsync(); })); }