EntityStoreSchemaGenerator.CreateStoreSchemaConnection Method

Definition

Creates an EntityConnection loaded with the providers metadata for the store schema.

Overloads

CreateStoreSchemaConnection(String, String)

Creates an EntityConnection loaded with the providers metadata for the store schema.

CreateStoreSchemaConnection(String, String, Version)

Creates an EntityConnection loaded with the providers metadata for the store schema. Note that the targetEntityFrameworkVersion parameter uses internal EntityFramework version numbers as described in the EntityFrameworkVersions class.

CreateStoreSchemaConnection(String, String)

Creates an EntityConnection loaded with the providers metadata for the store schema.

C#
public static System.Data.EntityClient.EntityConnection CreateStoreSchemaConnection(string providerInvariantName, string connectionString);

Parameters

providerInvariantName
String

The invariant name of a provider.

connectionString
String

The connection for the providers connection.

Returns

An EntityConnection that can query the ConceptualSchemaDefinition for the provider.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

CreateStoreSchemaConnection(String, String, Version)

Creates an EntityConnection loaded with the providers metadata for the store schema. Note that the targetEntityFrameworkVersion parameter uses internal EntityFramework version numbers as described in the EntityFrameworkVersions class.

C#
public static System.Data.EntityClient.EntityConnection CreateStoreSchemaConnection(string providerInvariantName, string connectionString, Version targetEntityFrameworkVersion);

Parameters

providerInvariantName
String

The provider invariant name.

connectionString
String

The connection for the providers connection.

targetEntityFrameworkVersion
Version

The internal Entity Framework version that is being targeted.

Returns

An EntityConnection that can query the ConceptualSchemaDefinition for the provider.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1