dcpddd  1.0.4
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain > Class Template Reference
Inheritance diagram for dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >:
dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< TData > dcp.DDD.DomainModel.SuperTypes.IRepository< TDomain >

Public Member Functions

new IEnumerable< TDomain > GetAll ()
 
virtual new TDomain Find (params object[] keyValues)
 Finds single entity by key values More...
 
IEnumerable< TDomain > FindBy (IQueryCommand< TDomain > queryObject)
 
int CountBy (IQueryCommand< TDomain > queryObject)
 
bool AnyBy (IQueryCommand< TDomain > queryObject)
 
TDomain Add (TDomain entity)
 
IEnumerable< TDomain > AddRange (IEnumerable< TDomain > entities)
 
IEnumerable< TDomain > FindBy (Expression< Func< TDomain, bool >> predicate)
 
IEnumerable< TR > FindBy< TR > (Expression< Func< TDomain, bool >> predicate, Expression< Func< TDomain, TR >> projection)
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< TDomain > queryObject, Expression< Func< TDomain, TR >> projection)
 
int CountBy (Expression< Func< TDomain, bool >> predicate)
 
bool AnyBy (Expression< Func< TDomain, bool >> predicate)
 
TDomain Remove (TDomain entity)
 
IEnumerable< TDomain > RemoveRange (IEnumerable< TDomain > entities)
 
TDomain Find (object[] keyValues, IEnumerable< Expression< Func< TDomain, object >>> includePaths)
 
TDomain Find (object keyValue, IEnumerable< Expression< Func< TDomain, object >>> includePaths)
 
TR Find< TR > (object[] keyValues, Expression< Func< TDomain, TR >> projection)
 
TR Find< TR > (object keyValue, Expression< Func< TDomain, TR >> projection)
 
TDomain Find (object keyValue, params Expression< Func< TDomain, object >>[] includePaths)
 
TR Find< TR > (object[] keyValues, Expression< Func< TDomain, TR >> projection, IEnumerable< Expression< Func< TDomain, object >>> includePaths)
 
TR Find< TR > (object keyValue, Expression< Func< TDomain, TR >> projection, params Expression< Func< TDomain, object >>[] includePaths)
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< TDomain > queryObject, Expression< Func< TDomain, TR >> projection, IEnumerable< Expression< Func< TDomain, object >>> includePaths)
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< TDomain > queryObject, Expression< Func< TDomain, TR >> projection, params Expression< Func< TDomain, object >>[] includePaths)
 
IEnumerable< TR > FindBy< TR > (Expression< Func< TDomain, bool >> predicate, Expression< Func< TDomain, TR >> projection, IEnumerable< Expression< Func< TDomain, object >>> includePaths)
 
IEnumerable< TR > FindBy< TR > (Expression< Func< TDomain, bool >> predicate, Expression< Func< TDomain, TR >> projection, params Expression< Func< TDomain, object >>[] includePaths)
 
- Public Member Functions inherited from dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< TData >
IEnumerable< T > GetAll ()
 Returns all entites More...
 
Find (object[] keyValues, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key values, eager loads related entities More...
 
Find (object keyValue, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key value, eager loads related entities More...
 
Find (object keyValue, params Expression< Func< T, object >>[] includePaths)
 Finds single entity by key values, eager loads related entities More...
 
TR Find< TR > (object[] keyValues, Expression< Func< T, TR >> projection)
 Finds single entity by key values and retutns entity projection More...
 
TR Find< TR > (object keyValue, Expression< Func< T, TR >> projection)
 Finds single entity by key value and returns entity projection More...
 
TR Find< TR > (object[] keyValues, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key values, eager loads related entities and returns entity projection More...
 
TR Find< TR > (object keyValue, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds single entity by single key value, eager loads related entities and returns enity projection More...
 
IEnumerable< T > FindBy (IQueryCommand< T > queryObject)
 Finds entities satisfied with query command More...
 
IEnumerable< T > FindBy (Expression< Func< T, bool >> predicate)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds entities satisfied with query command, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds entities satisfied with query command, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds entities satisfied with predicate, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds entities satisfied with predicate, eager loads related entities and returns entity projections More...
 
int CountBy (IQueryCommand< T > queryObject)
 Gets count of entities satisfied with query command More...
 
int CountBy (Expression< Func< T, bool >> predicate)
 Gets count of entities satisfied with query predicate More...
 
bool AnyBy (IQueryCommand< T > queryObject)
 Checks if elements satisfied with query are exists More...
 
bool AnyBy (Expression< Func< T, bool >> predicate)
 Checks if entites satisfied with query predicate are exists More...
 
Remove (T entity)
 Remove entity More...
 
void Remove (params object[] keyValues)
 Remove entity by keyValues More...
 
IEnumerable< T > RemoveRange (IEnumerable< T > entities)
 Remove range of entities More...
 
IEnumerable< T > AddRange (IEnumerable< T > entities)
 Add range of entities More...
 
Add (T entity)
 Adds entity to repository More...
 
- Public Member Functions inherited from dcp.DDD.DomainModel.SuperTypes.IRepository< TDomain >
IEnumerable< T > GetAll ()
 Returns all entites More...
 
Find (params object[] keyValues)
 Finds single entity by key values More...
 
Find (object[] keyValues, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key values, eager loads related entities More...
 
Find (object keyValue, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key value, eager loads related entities More...
 
Find (object keyValue, params Expression< Func< T, object >>[] includePaths)
 Finds single entity by single key value, eager load one related entity (short method) More...
 
TR Find< TR > (object[] keyValues, Expression< Func< T, TR >> projection)
 Finds single entity by key values and retutns entity projection More...
 
TR Find< TR > (object keyValue, Expression< Func< T, TR >> projection)
 Finds single entity by key value and returns entity projection More...
 
TR Find< TR > (object[] keyValues, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds single entity by key values, eager loads related entities and returns entity projection More...
 
TR Find< TR > (object keyValue, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds single entity by single key value, eager loads related entities and returns enity projection More...
 
IEnumerable< T > FindBy (IQueryCommand< T > queryObject)
 Finds entities satisfied with query command More...
 
IEnumerable< T > FindBy (Expression< Func< T, bool >> predicate)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds entities satisfied with query command, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (IQueryCommand< T > queryObject, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds entities satisfied with query command, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection)
 Finds entities satisfied with predicate More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection, IEnumerable< Expression< Func< T, object >>> includePaths)
 Finds entities satisfied with predicate, eager loads related entities and returns entity projections More...
 
IEnumerable< TR > FindBy< TR > (Expression< Func< T, bool >> predicate, Expression< Func< T, TR >> projection, params Expression< Func< T, object >>[] includePaths)
 Finds entities satisfied with predicate, eager loads related entities and returns entity projections More...
 
int CountBy (IQueryCommand< T > queryObject)
 Gets count of entities satisfied with query command More...
 
int CountBy (Expression< Func< T, bool >> predicate)
 Gets count of entities satisfied with query predicate More...
 
bool AnyBy (IQueryCommand< T > queryObject)
 Checks if elements satisfied with query are exists More...
 
bool AnyBy (Expression< Func< T, bool >> predicate)
 Checks if entites satisfied with query predicate are exists More...
 
Add (T entity)
 Adds entity to repository More...
 
IEnumerable< T > AddRange (IEnumerable< T > entities)
 Add range of entities More...
 
Remove (T entity)
 Remove entity More...
 
void Remove (params object[] keyValues)
 Remove entity by keyValues More...
 
IEnumerable< T > RemoveRange (IEnumerable< T > entities)
 Remove range of entities More...
 

Protected Member Functions

 AdaptedRepositoryBase (IUnitOfWork unitOfWork, Dictionary< Type, Type > typesMappings, IEnumerable< Expression< Func< TData, object >>> keys)
 
- Protected Member Functions inherited from dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< TData >
 RepositoryBase (IUnitOfWork unitOfWork, params Expression< Func< T, object >>[] keys)
 Constructor More...
 

Protected Attributes

new readonly DbContext Context
 
new readonly DbSet< TData > Set
 
- Protected Attributes inherited from dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< TData >
readonly DbContext Context
 
readonly DbSet< T > Set
 
readonly ObjectContext ObjectContext
 
readonly ObjectSet< T > ObjectSet
 

Constructor & Destructor Documentation

dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.AdaptedRepositoryBase ( IUnitOfWork  unitOfWork,
Dictionary< Type, Type >  typesMappings,
IEnumerable< Expression< Func< TData, object >>>  keys 
)
protected

Member Function Documentation

TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Add ( TDomain  entity)
IEnumerable<TDomain> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.AddRange ( IEnumerable< TDomain >  entities)
bool dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.AnyBy ( IQueryCommand< TDomain >  queryObject)
bool dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.AnyBy ( Expression< Func< TDomain, bool >>  predicate)
int dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.CountBy ( IQueryCommand< TDomain >  queryObject)
int dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.CountBy ( Expression< Func< TDomain, bool >>  predicate)
virtual new TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find ( params object[]  keyValues)
virtual

Finds single entity by key values

Parameters
keyValuesKey values
Returns
Entity

Reimplemented from dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< TData >.

TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find ( object[]  keyValues,
IEnumerable< Expression< Func< TDomain, object >>>  includePaths 
)
TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find ( object  keyValue,
IEnumerable< Expression< Func< TDomain, object >>>  includePaths 
)
TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find ( object  keyValue,
params Expression< Func< TDomain, object >>[]  includePaths 
)
TR dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find< TR > ( object[]  keyValues,
Expression< Func< TDomain, TR >>  projection 
)
TR dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find< TR > ( object  keyValue,
Expression< Func< TDomain, TR >>  projection 
)
TR dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find< TR > ( object[]  keyValues,
Expression< Func< TDomain, TR >>  projection,
IEnumerable< Expression< Func< TDomain, object >>>  includePaths 
)
TR dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Find< TR > ( object  keyValue,
Expression< Func< TDomain, TR >>  projection,
params Expression< Func< TDomain, object >>[]  includePaths 
)
IEnumerable<TDomain> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy ( IQueryCommand< TDomain >  queryObject)
IEnumerable<TDomain> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy ( Expression< Func< TDomain, bool >>  predicate)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( Expression< Func< TDomain, bool >>  predicate,
Expression< Func< TDomain, TR >>  projection 
)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( IQueryCommand< TDomain >  queryObject,
Expression< Func< TDomain, TR >>  projection 
)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( IQueryCommand< TDomain >  queryObject,
Expression< Func< TDomain, TR >>  projection,
IEnumerable< Expression< Func< TDomain, object >>>  includePaths 
)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( IQueryCommand< TDomain >  queryObject,
Expression< Func< TDomain, TR >>  projection,
params Expression< Func< TDomain, object >>[]  includePaths 
)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( Expression< Func< TDomain, bool >>  predicate,
Expression< Func< TDomain, TR >>  projection,
IEnumerable< Expression< Func< TDomain, object >>>  includePaths 
)
IEnumerable<TR> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.FindBy< TR > ( Expression< Func< TDomain, bool >>  predicate,
Expression< Func< TDomain, TR >>  projection,
params Expression< Func< TDomain, object >>[]  includePaths 
)
new IEnumerable<TDomain> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.GetAll ( )
TDomain dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Remove ( TDomain  entity)
IEnumerable<TDomain> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.RemoveRange ( IEnumerable< TDomain >  entities)

Member Data Documentation

new readonly DbContext dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Context
protected
new readonly DbSet<TData> dcp.DDD.Infrastructure.Data.EF.SuperTypes.AdaptedRepositoryBase< TData, TDomain >.Set
protected

The documentation for this class was generated from the following file: