dcpddd  1.0.4
Public Member Functions | List of all members
dcp.DDD.DomainModel.SuperTypes.IRepository< T > Interface Template Reference

Default repository contract More...

Inheritance diagram for dcp.DDD.DomainModel.SuperTypes.IRepository< T >:
dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >

Public Member Functions

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< 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...
 
int CountBy (IQueryCommand< T > queryObject)
 Gets count of entities satisfied with query command More...
 
bool AnyBy (IQueryCommand< T > queryObject)
 Checks if elements satisfied with query are exists More...
 
Add (T entity)
 Adds entity to repository More...
 
IEnumerable< T > AddRange (IEnumerable< T > entities)
 Add range of entities More...
 
IEnumerable< T > FindBy (Expression< Func< T, bool >> predicate)
 Finds entities satisfied with predicate 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 (Expression< Func< T, bool >> predicate)
 Gets count of entities satisfied with query predicate 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...
 

Detailed Description

Default repository contract

Template Parameters
TEntity type
Type Constraints
T :class 

Member Function Documentation

Adds entity to repository

Parameters
entityEntity
Returns
Entity

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.AddRange ( IEnumerable< T >  entities)

Add range of entities

Parameters
entitiesEntities
Returns
Entities

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

bool dcp.DDD.DomainModel.SuperTypes.IRepository< T >.AnyBy ( IQueryCommand< T >  queryObject)

Checks if elements satisfied with query are exists

Parameters
queryObjectQuery
Returns
Is any

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

bool dcp.DDD.DomainModel.SuperTypes.IRepository< T >.AnyBy ( Expression< Func< T, bool >>  predicate)

Checks if entites satisfied with query predicate are exists

Parameters
predicateQuery predicate
Returns
Is Any

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

int dcp.DDD.DomainModel.SuperTypes.IRepository< T >.CountBy ( IQueryCommand< T >  queryObject)

Gets count of entities satisfied with query command

Parameters
queryObjectQuery command
Returns
Count

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

int dcp.DDD.DomainModel.SuperTypes.IRepository< T >.CountBy ( Expression< Func< T, bool >>  predicate)

Gets count of entities satisfied with query predicate

Parameters
predicateQuery predicate
Returns
Count

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find ( params object[]  keyValues)

Finds single entity by key values

Parameters
keyValuesKey values
Returns
Entity

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find ( object[]  keyValues,
IEnumerable< Expression< Func< T, object >>>  includePaths 
)

Finds single entity by key values, eager loads related entities

Parameters
keyValuesKey values
includePathsPaths of related entites
Returns
Entity

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find ( object  keyValue,
IEnumerable< Expression< Func< T, object >>>  includePaths 
)

Finds single entity by key value, eager loads related entities

Parameters
keyValueKey value
includePathsPaths of related entites
Returns
Entity

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find ( object  keyValue,
params Expression< Func< T, object >>[]  includePaths 
)

Finds single entity by single key value, eager load one related entity (short method)

Parameters
keyValueKey value
includePathsPaths of related entites
Returns
Entity

Use only when single include path

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

TR dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find< TR > ( object[]  keyValues,
Expression< Func< T, TR >>  projection 
)

Finds single entity by key values and retutns entity projection

Template Parameters
TREntity projection
Parameters
keyValuesKey values
projectionFactory of entity projection
Returns
Entity projection

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

TR dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Find< TR > ( object  keyValue,
Expression< Func< T, TR >>  projection 
)

Finds single entity by key value and returns entity projection

Template Parameters
TREntity projection
Parameters
keyValueKey value
projectionFactory of entity projection
Returns
Entity projection

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

TR dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
keyValuesKey values
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entity projection

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

TR dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
keyValueKey value
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entity projection

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.FindBy ( IQueryCommand< T >  queryObject)

Finds entities satisfied with query command

Parameters
queryObjectQuery command
Returns
Entites

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.FindBy ( Expression< Func< T, bool >>  predicate)

Finds entities satisfied with predicate

Parameters
predicateQuery predicate
Returns
Entites

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.FindBy< TR > ( IQueryCommand< T >  queryObject,
Expression< Func< T, TR >>  projection 
)

Finds entities satisfied with predicate

Template Parameters
TREntity projection
Parameters
queryObjectQuery command
projectionFactory of entity projection
Returns
Entity projections

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
queryObjectQuery command
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entity projections

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
queryObjectQuery command
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entity projections

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
predicateQuery predicate
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entites projetions

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.FindBy< TR > ( Expression< Func< T, bool >>  predicate,
Expression< Func< T, TR >>  projection 
)

Finds entities satisfied with predicate

Template Parameters
TREntity projection
Parameters
predicateQuery predicate
projectionFactory of entity projection
Returns
Entites projetions

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<TR> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.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

Template Parameters
TREntity projection
Parameters
predicateQuery predicate
projectionFactory of entity projection
includePathsPaths of related entites
Returns
Entites projetions

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.GetAll ( )

Returns all entites

Returns
Entities

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Remove ( entity)

Remove entity

Parameters
entityEntity
Returns
Entity

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

void dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Remove ( params object[]  keyValues)

Remove entity by keyValues

Parameters
keyValuesKey values

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.

IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.RemoveRange ( IEnumerable< T >  entities)

Remove range of entities

Parameters
entitiesEntities
Returns
Entities

Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.


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