EntityProviderFactory.IServiceProvider.GetService Method (Type)
Returns the requested IServiceProvider class.
Assembly: EntityFramework (in EntityFramework.dll)
Parameters
- serviceType
-
Type:
System.Type
The Type to return.
Return Value
Type: System.ObjectA 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.