The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.

SerializableObjectLayerService Class

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

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public class SerializableObjectLayerService :
    ServiceBase,
    ISerializableObjectLayerService
Public Class SerializableObjectLayerService
    Inherits ServiceBase
    Implements ISerializableObjectLayerService
public class SerializableObjectLayerService :
    ServiceBase,
    ISerializableObjectLayerService
Public Class SerializableObjectLayerService
    Inherits ServiceBase
    Implements ISerializableObjectLayerService

Remarks

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);
    }
}

For more information on transferring data via WCF services, refer to Transferring Data via WCF Services.

Inheritance

Object
ServiceBase
SerializableObjectLayerService
See Also