All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Standard 2.0+
.NET Framework 4.5.2+
The page you are viewing does not exist in the .NET Framework 4.5.2+ platform documentation. This link will take you to the parent topic of the current section.
.NET Standard 2.0+
.NET Core 3.0+

EFCoreObjectSpace.IsNewObject(Object) Method

Indicates whether a specified object is created but not saved to the database.

Namespace: DevExpress.ExpressApp.EFCore

Assembly: DevExpress.ExpressApp.EFCore.v20.1.dll

Declaration

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

Parameters

Name Type Description
obj Object

A object this method checks.

Returns

Type Description
Boolean

true if a specified object is created but not saved to the database; otherwise, false.

Remarks

When you use the BaseObjectSpace.CreateObject method or built-in Actions (for example, New) to create new objects, these objects are not saved to the database immediately. To save them, call the BaseObjectSpace.CommitChanges method or use corresponding built-in Actions (for example, Save). The IsNewObject method returns true until you save an object created within the current Object Space to the database. This method returns false after you save this object or if the specified object does not belong to the current Object Space.

See Also