Class SerializableObjectLayerServiceClientBase<IContractType>
- Namespace
- DevExpress.Xpo.DB
- Assembly
- DevExpress.Xpo.v24.1.dll
public class SerializableObjectLayerServiceClientBase<IContractType> : ClientBase<IContractType>, ISerializableObjectLayer, ISerializableObjectLayerProvider, ISerializableObjectLayerEx where IContractType : class, ISerializableObjectLayerService
Type Parameters
IContractType
- Inheritance
-
SerializableObjectLayerServiceClientBase<IContractType>
- Implements
-
- Derived
-
Constructors
SerializableObjectLayerServiceClientBase(Binding, EndpointAddress)
public SerializableObjectLayerServiceClientBase(Binding binding, EndpointAddress remoteAddress)
Parameters
binding
Binding
remoteAddress
EndpointAddress
SerializableObjectLayerServiceClientBase(string)
public SerializableObjectLayerServiceClientBase(string configName)
Parameters
configName
string
Properties
CanLoadCollectionObjects
public bool CanLoadCollectionObjects { get; }
Property Value
- bool
Channel
protected IContractType Channel { get; }
Property Value
- IContractType
ObjectLayer
public ISerializableObjectLayer ObjectLayer { get; }
Property Value
- ISerializableObjectLayer
Methods
CommitObjects(XPDictionaryStub, XPObjectStubCollection, XPObjectStubCollection, LockingOption)
public CommitObjectStubsResult[] CommitObjects(XPDictionaryStub dictionary, XPObjectStubCollection objectsForDelete, XPObjectStubCollection objectsForSave, LockingOption lockingOption)
Parameters
dictionary
XPDictionaryStub
objectsForDelete
XPObjectStubCollection
objectsForSave
XPObjectStubCollection
lockingOption
LockingOption
Returns
- CommitObjectStubsResult[]
CreateObjectType(string, string)
public void CreateObjectType(string assemblyName, string typeName)
Parameters
assemblyName
string
typeName
string
ExecuteClient<R>(OperationResultChannelPredicate<R>)
public OperationResult<R> ExecuteClient<R>(OperationResultChannelPredicate<R> predicate)
Parameters
predicate
OperationResultChannelPredicate<R>
Returns
- OperationResult<R>
Type Parameters
R
ExecuteClient<R>(OperationResultChannelPredicate<R>, Func<Exception, bool>)
public OperationResult<R> ExecuteClient<R>(OperationResultChannelPredicate<R> predicate, Func<Exception, bool> exceptionHandler)
Parameters
predicate
OperationResultChannelPredicate<R>
exceptionHandler
Func<Exception, bool>
Returns
- OperationResult<R>
Type Parameters
R
GetObjectsByKey(XPDictionaryStub, GetObjectStubsByKeyQuery[])
public SerializableObjectLayerResult<XPObjectStubCollection[]> GetObjectsByKey(XPDictionaryStub dictionary, GetObjectStubsByKeyQuery[] queries)
Parameters
dictionary
XPDictionaryStub
queries
GetObjectStubsByKeyQuery[]
Returns
- SerializableObjectLayerResult<XPObjectStubCollection[]>
GetParentObjectsToDelete()
public SerializableObjectLayerResult<XPObjectStubCollection> GetParentObjectsToDelete()
Returns
- SerializableObjectLayerResult<XPObjectStubCollection>
GetParentObjectsToSave()
public SerializableObjectLayerResult<XPObjectStubCollection> GetParentObjectsToSave()
Returns
- SerializableObjectLayerResult<XPObjectStubCollection>
GetParentTouchedClassInfos()
public string[] GetParentTouchedClassInfos()
Returns
- string[]
HandleModifyDataException(Exception)
protected virtual bool HandleModifyDataException(Exception ex)
Parameters
ex
Exception
Returns
- bool
HandleSelectDataException(Exception)
protected virtual bool HandleSelectDataException(Exception ex)
Parameters
ex
Exception
Returns
- bool
IsParentObjectToDelete(XPDictionaryStub, XPObjectStub)
public bool IsParentObjectToDelete(XPDictionaryStub dictionary, XPObjectStub theObject)
Parameters
dictionary
XPDictionaryStub
theObject
XPObjectStub
Returns
- bool
IsParentObjectToSave(XPDictionaryStub, XPObjectStub)
public bool IsParentObjectToSave(XPDictionaryStub dictionary, XPObjectStub theObject)
Parameters
dictionary
XPDictionaryStub
theObject
XPObjectStub
Returns
- bool
LoadCollectionObjects(XPDictionaryStub, string, XPObjectStub)
public SerializableObjectLayerResult<XPObjectStubCollection> LoadCollectionObjects(XPDictionaryStub dictionary, string refPropertyName, XPObjectStub ownerObject)
Parameters
dictionary
XPDictionaryStub
refPropertyName
string
ownerObject
XPObjectStub
Returns
- SerializableObjectLayerResult<XPObjectStubCollection>
LoadDelayedProperties(XPDictionaryStub, XPObjectStub, string[])
public SerializableObjectLayerResult<object[]> LoadDelayedProperties(XPDictionaryStub dictionary, XPObjectStub theObject, string[] props)
Parameters
dictionary
XPDictionaryStub
theObject
XPObjectStub
props
string[]
Returns
- SerializableObjectLayerResult<object[]>
LoadDelayedProperties(XPDictionaryStub, XPObjectStubCollection, string)
public SerializableObjectLayerResult<object[]> LoadDelayedProperties(XPDictionaryStub dictionary, XPObjectStubCollection objects, string property)
Parameters
dictionary
XPDictionaryStub
objects
XPObjectStubCollection
property
string
Returns
- SerializableObjectLayerResult<object[]>
LoadObjects(XPDictionaryStub, ObjectStubsQuery[])
public SerializableObjectLayerResult<XPObjectStubCollection[]> LoadObjects(XPDictionaryStub dictionary, ObjectStubsQuery[] queries)
Parameters
dictionary
XPDictionaryStub
queries
ObjectStubsQuery[]
Returns
- SerializableObjectLayerResult<XPObjectStubCollection[]>
OnClientChannelCreated(object)
protected virtual void OnClientChannelCreated(object channel)
Parameters
channel
object
Purge()
public PurgeResult Purge()
Returns
- PurgeResult
SelectData(XPDictionaryStub, ObjectStubsQuery, CriteriaOperatorCollection, CriteriaOperatorCollection, CriteriaOperator)
public object[][] SelectData(XPDictionaryStub dictionary, ObjectStubsQuery query, CriteriaOperatorCollection properties, CriteriaOperatorCollection groupProperties, CriteriaOperator groupCriteria)
Parameters
dictionary
XPDictionaryStub
query
ObjectStubsQuery
properties
CriteriaOperatorCollection
groupProperties
CriteriaOperatorCollection
groupCriteria
CriteriaOperator
Returns
- object[][]
Events
ClientChannelCreated
public event ClientChannelCreatedHandler ClientChannelCreated
Event Type
- ClientChannelCreatedHandler
GlobalObjectClientChannelCreated
public static event ClientChannelCreatedHandler GlobalObjectClientChannelCreated
Event Type
- ClientChannelCreatedHandler