IdentityDbContext<TUser> Constructor (String)

Initializes a new instance of the IdentityDbContext<TUser> class which takes the connection string to use.

Namespace:  Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

Syntax

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

Dim instance As New IdentityDbContext(nameOrConnectionString)
public IdentityDbContext(
    string nameOrConnectionString
)
public:
IdentityDbContext(
    String^ nameOrConnectionString
)
new : 
        nameOrConnectionString:string -> IdentityDbContext
public function IdentityDbContext(
    nameOrConnectionString : String
)

Parameters

  • nameOrConnectionString
    Type: System.String
    The name or connection string.

See Also

Reference

IdentityDbContext<TUser> Class

IdentityDbContext<TUser> Overload

Microsoft.AspNet.Identity.EntityFramework Namespace

Other Resources

ASP.NET Identity