Session.IsNewObject(Object, Boolean) Method
OBSOLETE
Use Is
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.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
the |
Object | The persistent object to test. |
include |
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.