.NET Framework Class Library
EntityStoreSchemaGenerator..::.CreateStoreSchemaConnection Method

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)
Syntax

Visual Basic (Declaration)
Public Shared Function CreateStoreSchemaConnection ( _
    providerInvariantName As String, _
    connectionString As String _
) As EntityConnection
Visual Basic (Usage)
Dim providerInvariantName As String
Dim connectionString As String
Dim returnValue As EntityConnection

returnValue = EntityStoreSchemaGenerator.CreateStoreSchemaConnection(providerInvariantName, _
    connectionString)
C#
public static EntityConnection CreateStoreSchemaConnection(
    string providerInvariantName,
    string connectionString
)
Visual C++
public:
static EntityConnection^ CreateStoreSchemaConnection(
    String^ providerInvariantName, 
    String^ connectionString
)
JScript
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.

Return Value

Type: System.Data.EntityClient..::.EntityConnection
An EntityConnection that can query the ConceptualSchemaDefinition for the provider.
.NET Framework Security

Platforms

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.
Version Information

.NET Framework

Supported in: 3.5 SP1
See Also

Reference

Tags :


Page view tracker