Table of Contents

Class SimpleServiceProvider

Namespace
LinqToDB.Internal.DataProvider
Assembly
linq2db.dll
public sealed class SimpleServiceProvider : IServiceProvider
Inheritance
object
SimpleServiceProvider
Implements
Extension Methods

Methods

AddService<T>(T)

public void AddService<T>(T service) where T : class

Parameters

service T

Type Parameters

T

GetService(Type)

Gets the service object of the specified type.

public object? GetService(Type serviceType)

Parameters

serviceType Type

An object that specifies the type of service object to get.

Returns

object

A service object of type serviceType.-or- null if there is no service object of type serviceType.