Skip to main content

RepositoryExtensions Members

Provides a set of extension methods to perform commonly used operations with IRepository<TEntity, TPrimaryKey>.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
FindActualProjectionByKey<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>, TPrimaryKey) static Loads from the store or updates an entity with the given primary key value. If no entity with the given primary key is found in the store, returns null.
FindExistingOrAddNewEntity<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection, Action<TProjection, TEntity>) static Returns the entity that corresponds to the specified projection.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetProjectionPrimaryKey<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection) static Returns a primary key of the given entity.
GetProjectionPrimaryKeyEqualsExpression<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TPrimaryKey) static Builds a lambda expression that compares an entity primary key with the given constant value.
GetSinglePropertyPrimaryKeyProjectionProperty<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>) static
GetType() Gets the Type of the current instance. Inherited from Object.
IsDetached<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection) static Gets whether the given entity is detached from the unit of work.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ProjectionHasPrimaryKey<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection) static Determines whether the given entity has the primary key assigned (the primary key is not null).
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
SetProjectionPrimaryKey<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection, TPrimaryKey) static Sets the primary key of a given projection.
ToString() Returns a string that represents the current object. Inherited from Object.
VerifyProjection<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>) static
See Also