dcpddd
1.0.4
|
Default repository contract More...
Public Member Functions | |
IEnumerable< T > | GetAll () |
Returns all entites More... | |
T | Find (params object[] keyValues) |
Finds single entity by key values More... | |
T | Find (object[] keyValues, IEnumerable< Expression< Func< T, object >>> includePaths) |
Finds single entity by key values, eager loads related entities More... | |
T | Find (object keyValue, IEnumerable< Expression< Func< T, object >>> includePaths) |
Finds single entity by key value, eager loads related entities More... | |
T | 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... | |
T | 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... | |
T | 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... | |
Default repository contract
T | Entity type |
T | : | class |
T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Add | ( | T | entity | ) |
Adds entity to repository
entity | 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
entities | 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
queryObject | Query |
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
predicate | Query predicate |
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
queryObject | Query command |
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
predicate | Query predicate |
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
keyValues | Key values |
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
keyValues | Key values |
includePaths | Paths of related entites |
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
keyValue | Key value |
includePaths | Paths of related entites |
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)
keyValue | Key value |
includePaths | Paths of related entites |
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
TR | Entity projection |
keyValues | Key values |
projection | Factory of 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
TR | Entity projection |
keyValue | Key value |
projection | Factory of 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
TR | Entity projection |
keyValues | Key values |
projection | Factory of entity projection |
includePaths | Paths of related entites |
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
TR | Entity projection |
keyValue | Key value |
projection | Factory of entity projection |
includePaths | Paths of related entites |
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
queryObject | Query command |
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
predicate | Query predicate |
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
TR | Entity projection |
queryObject | Query command |
projection | Factory of entity projection |
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
TR | Entity projection |
queryObject | Query command |
projection | Factory of entity projection |
includePaths | Paths of related 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, | ||
params Expression< Func< T, object >>[] | includePaths | ||
) |
Finds entities satisfied with query command, eager loads related entities and returns entity projections
TR | Entity projection |
queryObject | Query command |
projection | Factory of entity projection |
includePaths | Paths of related entites |
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
TR | Entity projection |
predicate | Query predicate |
projection | Factory of entity projection |
includePaths | Paths of related entites |
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
TR | Entity projection |
predicate | Query predicate |
projection | Factory of entity projection |
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
TR | Entity projection |
predicate | Query predicate |
projection | Factory of entity projection |
includePaths | Paths of related entites |
Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.
IEnumerable<T> dcp.DDD.DomainModel.SuperTypes.IRepository< T >.GetAll | ( | ) |
Returns all entites
Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.
T dcp.DDD.DomainModel.SuperTypes.IRepository< T >.Remove | ( | T | entity | ) |
Remove entity
entity | 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
keyValues | Key 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
entities | Entities |
Implemented in dcp.DDD.Infrastructure.Data.EF.SuperTypes.RepositoryBase< T >.