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 Packages: DevExpress.Win.PivotGrid, DevExpress.Win.TreeMap, DevExpress.Xpo
NuGet Package: DevExpress.Xpo
Declaration
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.