ObjectGraphUtilsDetermineActionQueuesTEntity Method (TEntity, IPredicate, ListActionQueueElementTEntity, ListActionQueueElementTEntity, Boolean) |
Determines the action queues for the entity passed in. The action queues contain the entities to process in the right order.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public void DetermineActionQueues<TEntity>(
TEntity entityToSave,
IPredicate updateRestriction,
ref List<ActionQueueElement<TEntity>> insertQueue,
ref List<ActionQueueElement<TEntity>> updateQueue,
bool refetchAfterAction
)
where TEntity : class, IEntityCore
Public Sub DetermineActionQueues(Of TEntity As {Class, IEntityCore}) (
entityToSave As TEntity,
updateRestriction As IPredicate,
ByRef insertQueue As List(Of ActionQueueElement(Of TEntity)),
ByRef updateQueue As List(Of ActionQueueElement(Of TEntity)),
refetchAfterAction As Boolean
)
Parameters
- entityToSave
- Type: TEntity
Entity to save. - updateRestriction
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Update restriction to use with entityToSave. - insertQueue
- Type: System.Collections.GenericListActionQueueElementTEntity
Insert queue. - updateQueue
- Type: System.Collections.GenericListActionQueueElementTEntity
Update queue. - refetchAfterAction
- Type: SystemBoolean
flag to set in the new actionobjects if the entity to save has to be refetched after the action
Type Parameters
- TEntity
Remarks The insert queue hasn't been sorted based on type. To do that call SortQueueOnType``1(ListActionQueueElementUMP)
See Also