CollectionCoreTOnEntityAdding Method |
Called at the start of the Add or Insert routine which adds an entity to this collection. Will raise EntityAdding event.
Namespace: SD.LLBLGen.Pro.ORMSupportClassesAssembly: SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.0.0.0 (5.0.0)
Syntax protected virtual bool OnEntityAdding(
T entityToAdd
)
Protected Overridable Function OnEntityAdding (
entityToAdd As T
) As Boolean
Parameters
- entityToAdd
- Type: T
The entity to add.
Return Value
Type:
Boolean
true if the add action can continue (e.g. the event wasn't canceled) otherwise false.
See Also