DocumentManagerServiceExtensions.FindEntityDocument<TEntity, TPrimaryKey>(IDocumentManagerService, TPrimaryKey) Method

Searches for a document that contains a single object view model editing entity with a specified primary key.

Namespace: DevExpress.Mvvm.ViewModel

Assembly: DevExpress.Mvvm.v20.2.ViewModel.dll

Declaration

public static IDocument FindEntityDocument<TEntity, TPrimaryKey>(
    this IDocumentManagerService documentManagerService,
    TPrimaryKey primaryKey
)
<ExtensionAttribute>
Public Shared Function FindEntityDocument(Of TEntity, TPrimaryKey)(
    documentManagerService As IDocumentManagerService,
    primaryKey As TPrimaryKey
) As IDocument

Parameters

Name Type Description
documentManagerService IDocumentManagerService

An instance of the IDocumentManager interface used to find a document.

primaryKey TPrimaryKey

An entity primary key.

Type Parameters

Name
TEntity
TPrimaryKey

Returns

Type
IDocument
See Also