Skip to main content

IRepository<TEntity, TPrimaryKey>.Add(TEntity) Method

Marks the given entity as Added such that it will be commited to the store when IUnitOfWork.SaveChanges is called.

Namespace: DevExpress.Mvvm.DataModel

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

NuGet Package: DevExpress.Scaffolding.Core

Declaration

void Add(
    TEntity entity
)

Parameters

Name Type Description
entity TEntity

The entity to add.

See Also