Skip to main content
A newer version of this page is available. .

RepositoryExtensions.IsDetached<TEntity, TProjection, TPrimaryKey>(IRepository<TEntity, TPrimaryKey>, TProjection) Method

Gets whether the given entity is detached from the unit of work.

Namespace: DevExpress.Mvvm.DataModel

Assembly: DevExpress.Mvvm.v19.1.DataModel.dll

Declaration

public static bool IsDetached<TEntity, TProjection, TPrimaryKey>(
    this IRepository<TEntity, TPrimaryKey> repository,
    TProjection projectionEntity
)
    where TEntity : class

Parameters

Name Type Description
repository IRepository<TEntity, TPrimaryKey>

A repository.

projectionEntity TProjection

An entity.

Type Parameters

Name
TEntity
TProjection
TPrimaryKey

Returns

Type Description
Boolean

true if the given entity is detached from the unit of work; otherwise, false.

See Also