xpo-devexpress-dot-xpo-dot-db-12aeaf69.md
The base class for WCF services providing access to data via distributed object access layer (ISerializableObjectLayer implementors).
Namespace : DevExpress.Xpo.DB
Assembly : DevExpress.Xpo.v25.2.dll
NuGet Package : DevExpress.Xpo
public class SerializableObjectLayerService :
ServiceBase,
ISerializableObjectLayerService
Public Class SerializableObjectLayerService
Inherits ServiceBase
Implements ISerializableObjectLayerService
Example:
(ObjectWcfService.svc.cs)
public class ObjectService: SerializableObjectLayerService {
// Initializing a service with a proxy providing a SerializableObjectLayer instance.
public ObjectService(): base(new ObjectServiceProxy()) {
}
static ObjectService() {
// Initializing a data access layer (DAL).
// ...
}
}
public class ObjectServiceProxy: SerializableObjectLayerProxyBase {
protected override SerializableObjectLayer GetObjectLayer() {
return new SerializableObjectLayer(new UnitOfWork(), true);
}
}
(ObjectWcfService.svc.vb)
Public Class ObjectService
Inherits SerializableObjectLayerService
' Initializing a service with a proxy providing a SerializableObjectLayer instance.
Public Sub New()
MyBase.New(New ObjectServiceProxy())
End Sub
Shared Sub New()
' Initializing a data access layer (DAL).
' ...
End Sub
End Class
Public Class ObjectServiceProxy
Inherits SerializableObjectLayerProxyBase
Protected Overrides Function GetObjectLayer() As SerializableObjectLayer
Return New SerializableObjectLayer(New UnitOfWork(), True)
End Function
End Class
For more information on transferring data via WCF services, refer to Transferring Data via WCF Services.
ISerializableObjectLayerService
Object ServiceBase SerializableObjectLayerService
See Also