The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.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.IsObjectToSave(Object) Method

Indicates whether the specified object has been added, deleted or modified, but not committed in the current object context.

Namespace: DevExpress.ExpressApp.EF

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

Declaration

public override bool IsObjectToSave(
    object obj
)
Public Overrides Function IsObjectToSave(
    obj As Object
) As Boolean
public override bool IsObjectToSave(
    object obj
)
Public Overrides Function IsObjectToSave(
    obj As Object
) As Boolean

Parameters

Name Type Description
obj Object

An object for which it is requested whether it should be saved.

Parameters

Name Type Description
obj Object

An object for which it is requested whether it should be saved.

Returns

Type Description
Boolean

true if the specified object has been added, deleted or modified and should be committed; false if the object has not been modified since the last commit.

Returns

Type Description
Boolean

true if the specified object has been added, deleted or modified and should be committed; false if the object has not been modified since the last commit.

Remarks

When you create, modify or delete an object, you should then call the BaseObjectSpace.CommitChanges method. This method saves all the changes made to the current Object Space's persistent objects to the database. To get the list of objects to be committed, use the EFObjectSpace.ModifiedObjects property. After calling the BaseObjectSpace.CommitChanges method this list is empty until creating, modifying or deleting an object.

See Also