Skip to main content

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.v23.2.DataModel.dll

NuGet Package: DevExpress.Scaffolding.Core

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