Skip to main content
.NET 6.0+

Session.IsNewObject(Object, Boolean) Method

OBSOLETE

Use IsNewObject instead

Indicates whether the specified persistent object is a newly created object which isn’t saved in the transaction currently in progress or in any of its parent transaction (optionally).

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v24.1.dll

NuGet Package: DevExpress.Xpo

Declaration

[Obsolete("Use IsNewObject(object theObject) instead", true)]
[Browsable(false)]
public virtual bool IsNewObject(
    object theObject,
    bool includeParent
)

Parameters

Name Type Description
theObject Object

The persistent object to test.

includeParent Boolean

true to check parent transactions for the specified object; otherwise, false.

Returns

Type Description
Boolean

true if the specified object is a new object; otherwise, false.

Remarks

This method checks whether the specified persistent object is a newly created object in the transaction currently in progress. It is overridden in the NestedUnitOfWork class to check parent transactions for the specified object.

See Also