Enumeration EntityEdgeDeletionBehavior

Enumeration Members

CASCADE_DELETE: 2

Delete all entities that reference the entity being deleted through this field. This is very similar to SQL ON DELETE CASCADE but is done in the Entity framework instead of at the underlying level. This will also invalidate the cached referencing entities.

CASCADE_DELETE_INVALIDATE_CACHE_ONLY: 0

Invalidate the cache for all entities that reference the entity being deleted through this field, and transitively run deletions on those entities. This is most useful when the database itself expresses foreign keys and cascading deletes and the entity framework just needs to be kept consistent with the state of the database.

SET_NULL: 3

Set this field to null when the referenced entity is deleted. This is very similar to SQL ON DELETE SET NULL but is done in the Entity framework instead of at the underlying level. This will also invalidate the cached referencing entities.

SET_NULL_INVALIDATE_CACHE_ONLY: 1

Invalidate the cache for all entities that reference the entity being deleted through this field. This is most useful when the database itself expresses foreign keys and cascading "SET NULL"s and the entity framework just needs to be kept consistent with the state of the database.

Generated using TypeDoc