Back to Devexpress

IRepository<TEntity, TPrimaryKey> Interface

corelibraries-devexpress-dot-mvvm-dot-datamodel-dot-irepository-2.md

latest3.8 KB
Original Source

IRepository<TEntity, TPrimaryKey> Interface

The IRepository interface represents the read and write implementation of the Repository pattern such that it can be used to query entities of a given type.

Namespace : DevExpress.Mvvm.DataModel

Assembly : DevExpress.Mvvm.v25.2.DataModel.dll

NuGet Package : DevExpress.Scaffolding.Core

Declaration

csharp
public interface IRepository<TEntity, TPrimaryKey> :
    IReadOnlyRepository<TEntity>,
    IRepositoryQuery<TEntity>,
    IQueryable<TEntity>,
    IEnumerable<TEntity>,
    IEnumerable,
    IQueryable
    where TEntity : class
vb
Public Interface IRepository(Of TEntity As Class, TPrimaryKey)
    Inherits IReadOnlyRepository(Of TEntity),
             IRepositoryQuery(Of TEntity),
             IQueryable(Of TEntity),
             IEnumerable(Of TEntity),
             IEnumerable,
             IQueryable

Type Parameters

Name
TEntity
TPrimaryKey

Extension Methods

Show 11 items

GetFilteredEntities<TEntity, TProjection>(Expression<Func<TEntity, Boolean>>, Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>)

GetFilteredEntities<TEntity>(Expression<Func<TEntity, Boolean>>)

GetProjectionPrimaryKeyEqualsExpression<TEntity, TProjection, TPrimaryKey>(TPrimaryKey)

GetProjectionPrimaryKey<TEntity, TProjection, TPrimaryKey>(TProjection)

GetSinglePropertyPrimaryKeyProjectionProperty<TEntity, TProjection, TPrimaryKey>()

SetProjectionPrimaryKey<TEntity, TProjection, TPrimaryKey>(TProjection, TPrimaryKey)

FindExistingOrAddNewEntity<TEntity, TProjection, TPrimaryKey>(TProjection, Action<TProjection, TEntity>)

IsDetached<TEntity, TProjection, TPrimaryKey>(TProjection)

ProjectionHasPrimaryKey<TEntity, TProjection, TPrimaryKey>(TProjection)

FindActualProjectionByKey<TEntity, TProjection, TPrimaryKey>(Func<IRepositoryQuery<TEntity>, IQueryable<TProjection>>, TPrimaryKey)

Load()

See Also

IRepository<TEntity, TPrimaryKey> Members

DevExpress.Mvvm.DataModel Namespace