Skip to main content
A newer version of this page is available. .

SerializableObjectLayerProxyBase Class

The base class for SerializableObjectLayer proxies.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public abstract class SerializableObjectLayerProxyBase :
    ISerializableObjectLayer,
    ISerializableObjectLayerProvider,
    ISerializableObjectLayerEx,
    ICommandChannel

Remarks

SerializableObjectLayerProxyBase descendants are proxies that used to initialize SerializableObjectLayerService-based services with corresponding SerializableObjectLayer instances.

Normally, all you have to do is initialize a SerializableObjectLayerService-based service and implement a SerializableObjectLayerProxyBase descendant as shown below.

(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
SerializableObjectLayerProxyBase
See Also