Click or drag to resize
EntityCollectionBase2TEntityAddNew Method
Will add a new entity to the list, will set its parent collection property so CancelEdit will remove it from the list again, and will set its flag that it is added by databinding.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: (5.3.0)
public override TEntity AddNew()

Return Value

Type: TEntity
InvalidOperationExceptionIf this collection is set to ReadOnly
Do not call this method from your own code. This is a databinding ONLY method.
See Also