Table of Contents

Class SerializableObjectLayerService

Namespace
DevExpress.Xpo.DB
Assembly
DevExpress.Xpo.v24.1.dll

The base class for WCF services providing access to data via distributed object access layer (ISerializableObjectLayer implementors).

public class SerializableObjectLayerService : ServiceBase, ISerializableObjectLayerService
Inheritance
SerializableObjectLayerService
Implements
Inherited Members

Constructors

SerializableObjectLayerService(ISerializableObjectLayer)

Initializes a new instance of the SerializableObjectLayerService class with a specified serializable object layer.

public SerializableObjectLayerService(ISerializableObjectLayer serializableObjectLayer)

Parameters

serializableObjectLayer ISerializableObjectLayer

An object implementing the ISerializableObjectLayer interface. The specified object is exposed via the SerializableObjectLayerService.SerializableObjectLayer property.

Properties

SerializableObjectLayer

Returns a serializable object layer used to initialize the current SerializableObjectLayerService instance.

public ISerializableObjectLayer SerializableObjectLayer { get; }

Property Value

ISerializableObjectLayer

An ISerializableObjectLayer implementor passed as a parameter to the SerializableObjectLayerService constructor.

Methods

CommitObjects(XPDictionaryStub, XPObjectStubCollection, XPObjectStubCollection, LockingOption)

Delegates the call to the SerializableObjectLayer.CommitObjects method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<CommitObjectStubsResult[]> CommitObjects(XPDictionaryStub dictionary, XPObjectStubCollection objectsForDelete, XPObjectStubCollection objectsForSave, LockingOption lockingOption)

Parameters

dictionary XPDictionaryStub
objectsForDelete XPObjectStubCollection
objectsForSave XPObjectStubCollection
lockingOption LockingOption

Returns

OperationResult<CommitObjectStubsResult[]>

CreateObjectType(string, string)

Delegates the call to the SerializableObjectLayer.CreateObjectType method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<object> CreateObjectType(string assemblyName, string typeName)

Parameters

assemblyName string
typeName string

Returns

OperationResult<object>

GetCanLoadCollectionObjects()

Delegates the call to the SerializableObjectLayer.CanLoadCollectionObjects property’s getter of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<bool> GetCanLoadCollectionObjects()

Returns

OperationResult<bool>

GetObjectsByKey(XPDictionaryStub, GetObjectStubsByKeyQuery[])

Delegates the call to the SerializableObjectLayer.GetObjectsByKey method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<XPObjectStubCollection[]>> GetObjectsByKey(XPDictionaryStub dictionary, GetObjectStubsByKeyQuery[] queries)

Parameters

dictionary XPDictionaryStub
queries GetObjectStubsByKeyQuery[]

Returns

OperationResult<SerializableObjectLayerResult<XPObjectStubCollection[]>>

GetParentObjectsToDelete()

Delegates the call to the SerializableObjectLayer.GetParentObjectsToDelete method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>> GetParentObjectsToDelete()

Returns

OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>>

GetParentObjectsToSave()

Delegates the call to the SerializableObjectLayer.GetParentObjectsToSave method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>> GetParentObjectsToSave()

Returns

OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>>

GetParentTouchedClassInfos()

Delegates the call to the SerializableObjectLayer.GetParentTouchedClassInfos method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<string[]> GetParentTouchedClassInfos()

Returns

OperationResult<string[]>

IsParentObjectToDelete(XPDictionaryStub, XPObjectStub)

Delegates the call to the SerializableObjectLayer.IsParentObjectToDelete method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<bool> IsParentObjectToDelete(XPDictionaryStub dictionary, XPObjectStub theObject)

Parameters

dictionary XPDictionaryStub
theObject XPObjectStub

Returns

OperationResult<bool>

IsParentObjectToSave(XPDictionaryStub, XPObjectStub)

Delegates the call to the SerializableObjectLayer.IsParentObjectToSave method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<bool> IsParentObjectToSave(XPDictionaryStub dictionary, XPObjectStub theObject)

Parameters

dictionary XPDictionaryStub
theObject XPObjectStub

Returns

OperationResult<bool>

LoadCollectionObjects(XPDictionaryStub, string, XPObjectStub)

Delegates the call to the SerializableObjectLayer.LoadCollectionObjects method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>> LoadCollectionObjects(XPDictionaryStub dictionary, string refPropertyName, XPObjectStub ownerObject)

Parameters

dictionary XPDictionaryStub
refPropertyName string
ownerObject XPObjectStub

Returns

OperationResult<SerializableObjectLayerResult<XPObjectStubCollection>>

LoadDelayedProperties(XPDictionaryStub, XPObjectStub, string[])

Delegates the call to the corresponding SerializableObjectLayer.LoadDelayedProperties overloaded method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<object[]>> LoadDelayedProperties(XPDictionaryStub dictionary, XPObjectStub theObject, string[] props)

Parameters

dictionary XPDictionaryStub
theObject XPObjectStub
props string[]

Returns

OperationResult<SerializableObjectLayerResult<object[]>>

LoadDelayedProperty(XPDictionaryStub, XPObjectStubCollection, string)

Delegates the call to the corresponding SerializableObjectLayer.LoadDelayedProperties overloaded method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<object[]>> LoadDelayedProperty(XPDictionaryStub dictionary, XPObjectStubCollection objects, string property)

Parameters

dictionary XPDictionaryStub
objects XPObjectStubCollection
property string

Returns

OperationResult<SerializableObjectLayerResult<object[]>>

LoadObjects(XPDictionaryStub, ObjectStubsQuery[])

Delegates the call to the SerializableObjectLayer.LoadObjects method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<SerializableObjectLayerResult<XPObjectStubCollection[]>> LoadObjects(XPDictionaryStub dictionary, ObjectStubsQuery[] queries)

Parameters

dictionary XPDictionaryStub
queries ObjectStubsQuery[]

Returns

OperationResult<SerializableObjectLayerResult<XPObjectStubCollection[]>>

Purge()

Delegates the call to the SerializableObjectLayer.Purge method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<PurgeResult> Purge()

Returns

OperationResult<PurgeResult>

SelectData(XPDictionaryStub, ObjectStubsQuery, CriteriaOperatorCollection, CriteriaOperatorCollection, CriteriaOperator)

Delegates the call to the SerializableObjectLayer.SelectData method of an object layer instance passed to the SerializableObjectLayerService‘s constructor and returns the operation result.

public virtual OperationResult<object[][]> SelectData(XPDictionaryStub dictionary, ObjectStubsQuery query, CriteriaOperatorCollection properties, CriteriaOperatorCollection groupProperties, CriteriaOperator groupCriteria)

Parameters

dictionary XPDictionaryStub
query ObjectStubsQuery
properties CriteriaOperatorCollection
groupProperties CriteriaOperatorCollection
groupCriteria CriteriaOperator

Returns

OperationResult<object[][]>