DbContext Constructor (String)

DbContext Constructor (String)

Constructs a new context instance using the given string as the name or connection string for the database to which a connection will be made. For more information on how this is used to create a connection, see the remarks section for DbContext.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

'Declaration
Public Sub New ( _
	nameOrConnectionString As String _
)
'Usage
Dim nameOrConnectionString As String 

Dim instance As New DbContext(nameOrConnectionString)

Parameters

nameOrConnectionString
Type: System.String

Either the database name or a connection string.

Show:
© 2016 Microsoft