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

IRepository<TEntity, TPrimaryKey>.Create(Boolean) Method

Creates a new instance of the entity type.

Namespace: DevExpress.Mvvm.DataModel

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

Declaration

TEntity Create(
    bool add = true
)

Optional Parameters

Name Type Default Description
add Boolean True

A flag determining if the newly created entity is added to the repository.

Returns

Type Description
TEntity

The created instance.

See Also