コード例 #1
0
 public virtual async Task <T> GetByIdAsync(long id)
 {
     return(await _dbContext.Set <T>().FirstOrDefaultAsync(t => t.Id == id));
 }