Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 CreateStoreSchemaConnection Method

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.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)
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.

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
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker