Skip to main content
All docs
V25.1
  • .NET 8.0+
    • The page you are viewing does not exist in the .NET Framework 4.6.2+ platform documentation. This link will take you to the parent topic of the current section.

    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.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.EFCore

    Declaration

    public override bool IsNewObject(
        object obj
    )

    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