Exemplo n.º 1
0
 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();
     }));
 }
Exemplo n.º 2
0
 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();
     }));
 }