Class WacListDataRepository<TEntity, TDbContext, TFilter>
Inheritance
System.Object
WacListDataRepository<TEntity, TDbContext, TFilter>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: WaCore.Crud.Data.Ef.dll
Syntax
public abstract class WacListDataRepository<TEntity, TDbContext, TFilter> : WacRepository<TEntity, TDbContext>, IWacListDataRepository<TEntity, TFilter>, IWacRepository<TEntity> where TEntity : class where TDbContext : DbContext where TFilter : IWacFilter
Type Parameters
Name |
Description |
TEntity |
|
TDbContext |
|
TFilter |
|
Constructors
|
Improve this Doc
View Source
WacListDataRepository(TDbContext)
Declaration
public WacListDataRepository(TDbContext dbContext)
Parameters
Type |
Name |
Description |
TDbContext |
dbContext |
|
Properties
|
Improve this Doc
View Source
SortFieldMapping
Declaration
protected virtual SortFieldMapping<TEntity> SortFieldMapping { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ApplyFilter(IQueryable<TEntity>, TFilter)
Declaration
protected abstract IQueryable<TEntity> ApplyFilter(IQueryable<TEntity> query, TFilter filter)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable<TEntity> |
query |
|
TFilter |
filter |
|
Returns
Type |
Description |
System.Linq.IQueryable<TEntity> |
|
|
Improve this Doc
View Source
ApplySortingAndPagination(IQueryable<TEntity>, TFilter)
Declaration
protected IQueryable<TEntity> ApplySortingAndPagination(IQueryable<TEntity> entityList, TFilter filter)
Parameters
Type |
Name |
Description |
System.Linq.IQueryable<TEntity> |
entityList |
|
TFilter |
filter |
|
Returns
Type |
Description |
System.Linq.IQueryable<TEntity> |
|
|
Improve this Doc
View Source
GetList(TFilter)
Declaration
public IList<TEntity> GetList(TFilter filter)
Parameters
Type |
Name |
Description |
TFilter |
filter |
|
Returns
Type |
Description |
System.Collections.Generic.IList<TEntity> |
|
|
Improve this Doc
View Source
GetListAsync(TFilter)
Declaration
public Task<IList<TEntity>> GetListAsync(TFilter filter)
Parameters
Type |
Name |
Description |
TFilter |
filter |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<TEntity>> |
|
|
Improve this Doc
View Source
GetTotalCount(TFilter)
Declaration
public int GetTotalCount(TFilter filter)
Parameters
Type |
Name |
Description |
TFilter |
filter |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetTotalCountAsync(TFilter)
Declaration
public Task<int> GetTotalCountAsync(TFilter filter)
Parameters
Type |
Name |
Description |
TFilter |
filter |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Int32> |
|
|
Improve this Doc
View Source
InitializeSortFieldMapping(Action<ISortFieldMappingBuilder<TEntity>>)
Declaration
protected void InitializeSortFieldMapping(Action<ISortFieldMappingBuilder<TEntity>> configAction)
Parameters
Implements