Skip to main content

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

Creates a new instance of the entity type.

Namespace: DevExpress.Mvvm.DataModel

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

NuGet Package: DevExpress.Scaffolding.Core

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