Back to Devexpress

SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork> Class

corelibraries-devexpress-dot-mvvm-dot-viewmodel-dot-singleobjectviewmodelbase-3.md

latest2.3 KB
Original Source

SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork> Class

The base class for POCO view models exposing a single entity of a given type and CRUD operations against this entity.

It is not recommended to inherit directly from this class. Use the SingleObjectViewModel class instead.

Namespace : DevExpress.Mvvm.ViewModel

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

NuGet Package : DevExpress.Scaffolding.Core

Declaration

csharp
[POCOViewModel]
public abstract class SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork> :
    ISingleObjectViewModel<TEntity, TPrimaryKey>,
    ISupportParameter,
    IDocumentContent,
    ISupportLogicalLayout<SingleObjectViewModelState>,
    ISupportLogicalLayout,
    ISupportUnitOfWorkPolicy,
    ISupportParentViewModel
    where TEntity : class
vb
<POCOViewModel>
Public MustInherit Class SingleObjectViewModelBase(Of TEntity As Class, TPrimaryKey, TUnitOfWork As IUnitOfWork)
    Implements ISingleObjectViewModel(Of TEntity, TPrimaryKey),
               ISupportParameter,
               IDocumentContent,
               ISupportLogicalLayout(Of SingleObjectViewModelState),
               ISupportLogicalLayout,
               ISupportUnitOfWorkPolicy,
               ISupportParentViewModel

Type Parameters

Name
TEntity
TPrimaryKey
TUnitOfWork

Implements

ISupportParameter

IDocumentContent

ISupportParentViewModel

Inheritance

Object SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork>

See Also

SingleObjectViewModelBase<TEntity, TPrimaryKey, TUnitOfWork> Members

DevExpress.Mvvm.ViewModel Namespace