IUnitOfWorkCore Methods |
The IUnitOfWorkCore type exposes the following members.
Name | Description | |
---|---|---|
AddCollectionForDelete |
Adds the collection with entities for deletion.
| |
AddCollectionForSave(IEntityCollectionCore) |
Adds the collection with entities for saving. No recursion and no refetch are done for these entities.
| |
AddCollectionForSave(IEntityCollectionCore, Boolean, Boolean) |
Adds the collection with entities for saving.
| |
AddForDelete |
Adds the passed in entity for deletion.
| |
AddForSave(IEntityCore) |
Adds the passed in entity for saving. No refetching will be applied. Save is recursive.
| |
AddForSave(IEntityCore, Boolean) |
Adds the passed in entity for saving. No refetching will be applied. Save is recursive.
| |
Commit(ITransactionController) |
Commits this unit of work. It will first add all entities in the added collections to the correct bins, then it will start
by first inserting all new entities, then saving all updates and then performing the deletes. This order can be controlled by the
constructor of the unit of work which allows users to define a different work order.
| |
Commit(ITransactionController, Boolean) |
Commits this unit of work. It will first add all entities in the added collections to the correct bins, then it will start
by first inserting all new entities, then saving all updates and then performing the deletes. This order can be controlled by the
constructor of the unit of work which allows users to define a different work order.
| |
CommitAsync |
Async variant of Commit(ITransactionController)
Commits this unit of work. It will first add all entities in the added collections to the correct bins, then it will start
by first inserting all new entities, then saving all updates and then performing the deletes. This order can be controlled by the
constructor of the unit of work which allows users to define a different work order.
| |
Reset |
Resets the inner contents of this Unit of work object
|