.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SerializableObjectLayer(Session, Boolean) Constructor

Initializes a new instance of the SerializableObjectLayer class with a specified parent session and the SerializableObjectLayer.ThroughCommitMode field value.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public SerializableObjectLayer(
    Session parentSession,
    bool throughCommitMode
)
Public Sub New(
    parentSession As Session,
    throughCommitMode As Boolean
)

Parameters

Name Type Description
parentSession Session

A Session object specifying a parent session for the current object layer.

throughCommitMode Boolean

true if the SerializableObjectLayer.CommitObjects method call should automatically commit changes in the parentSession to properly update key fields and fields with enabled optimistic locking in the object layer's session; otherwise, false. The specified value initializes the object layer's SerializableObjectLayer.ThroughCommitMode field.

See Also