IRepository<TEntity, TPrimaryKey>.Create(Boolean) Method
Creates a new instance of the entity type.
Namespace: DevExpress.Mvvm.DataModel
Assembly: DevExpress.Mvvm.v25.1.DataModel.dll
NuGet Package: DevExpress.Scaffolding.Core
Declaration
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