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