EntityProviderFactory.IServiceProvider.GetService Method (Type)

 

Returns the requested IServiceProvider class.

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

object IServiceProvider.GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The Type to return.

Return Value

Type: System.Object

A new instance of IServiceProvider. The supported types are DbProviderServices , T:System.Data.Entity.Core.Common.DbCommandDefinitionBuilder , and T:System.Data.IEntityAdapter . Returns null (or Nothing in Visual Basic) for every other type.