Share via


DbConfiguration.SetManifestTokenResolver(IManifestTokenResolver) Method

Definition

Call this method from the constructor of a class derived from DbConfiguration to set an implementation of IManifestTokenResolver which allows provider manifest tokens to be obtained from connections without necessarily opening the connection.

protected internal void SetManifestTokenResolver (System.Data.Entity.Infrastructure.IManifestTokenResolver resolver);
member this.SetManifestTokenResolver : System.Data.Entity.Infrastructure.IManifestTokenResolver -> unit
Protected Friend Sub SetManifestTokenResolver (resolver As IManifestTokenResolver)

Parameters

resolver
IManifestTokenResolver

The manifest token resolver.

Remarks

This method is provided as a convenient and discoverable way to add configuration to the Entity Framework. Internally it works in the same way as using AddDependencyResolver to add an appropriate resolver for IManifestTokenResolver. This means that, if desired, the same functionality can be achieved using a custom resolver or a resolver backed by an Inversion-of-Control container.

Applies to