Creates an EntityConnection loaded with the metadata of the specified the provider.
Namespace:
System.Data.Entity.Design
Assembly:
System.Data.Entity.Design (in System.Data.Entity.Design.dll)
Visual Basic (Declaration)
Public Shared Function CreateStoreSchemaConnection ( _
providerInvariantName As String, _
connectionString As String _
) As EntityConnection
Dim providerInvariantName As String
Dim connectionString As String
Dim returnValue As EntityConnection
returnValue = EntityStoreSchemaGenerator.CreateStoreSchemaConnection(providerInvariantName, _
connectionString)
public static EntityConnection CreateStoreSchemaConnection(
string providerInvariantName,
string connectionString
)
public:
static EntityConnection^ CreateStoreSchemaConnection(
String^ providerInvariantName,
String^ connectionString
)
public static function CreateStoreSchemaConnection(
providerInvariantName : String,
connectionString : String
) : EntityConnection
Parameters
- providerInvariantName
- Type: System..::.String
The invariant name of a provider.
The invariant name is a name that can be used programmatically to refer to the data provider. You can retrieve information about all of the data providers installed on the local computer by using the GetFactoryClasses method.
- connectionString
- Type: System..::.String
The connection used to open the database.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.NET Framework
Supported in: 3.5 SP1
Reference