예제 #1
0
 public virtual Task <TEntity> FindAsync(Guid entityId, IEnumerable <string> includes = null)
 {
     return(DbSet.AddIncludes(includes).AsNoTracking().FirstOrDefaultAsync(t => t.Id == entityId));
 }
예제 #2
0
 public virtual ValueTask <TEntity> GetAsync(Guid entityId, IEnumerable <string> includes = null)
 {
     return(DbSet.AddIncludes(includes).FindAsync(entityId));
 }