XpoServiceCollectionExtensions.AddXpoDefaultDataLayer(IServiceCollection, ServiceLifetime, Func<IServiceProvider, IDataLayer>) Method

Namespace: Microsoft.Extensions.DependencyInjection

Assembly: DevExpress.Xpo.v20.2.dll

Declaration

public static IServiceCollection AddXpoDefaultDataLayer(
    this IServiceCollection serviceCollection,
    ServiceLifetime lifetime,
    Func<IServiceProvider, IDataLayer> dataLayerFactory
)

Parameters

Name Type
serviceCollection IServiceCollection
lifetime ServiceLifetime
dataLayerFactory Func<IServiceProvider, IDataLayer>

Returns

Type
IServiceCollection
See Also