.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

EFObjectSpace.EnableObjectDeletionOnRemove(Object, Boolean) Method

Enables/disables the deletion of persistent objects from the data source when they are removed from the specified collection.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v19.2.dll

Declaration

public override void EnableObjectDeletionOnRemove(
    object collection,
    bool deleteObjectOnRemove
)
Public Overrides Sub EnableObjectDeletionOnRemove(
    collection As Object,
    deleteObjectOnRemove As Boolean
)
public override void EnableObjectDeletionOnRemove(
    object collection,
    bool deleteObjectOnRemove
)
Public Overrides Sub EnableObjectDeletionOnRemove(
    collection As Object,
    deleteObjectOnRemove As Boolean
)

Parameters

Name Type Description
collection Object

A collection of persistent objects that are requested to be removed from the database along with their removal from the collection.

deleteObjectOnRemove Boolean

true, to enable the object deletion from the database along with their removal from the collection; false, to disable it.

Parameters

Name Type Description
collection Object

A collection of persistent objects that are requested to be removed from the database along with their removal from the collection.

deleteObjectOnRemove Boolean

true, to enable the object deletion from the database along with their removal from the collection; false, to disable it.

Remarks

This method works only with collections of the EFCollection type and its descendants.

See Also