EntityContext Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EntityContext() |
Initializes a new instance of the EntityContext with the default schema name derived from the service name. |
EntityContext(String) |
Initializes a new instance of the EntityContext with a given |
EntityContext(String, String) |
Initializes a new instance of the EntityContext with a given |
EntityContext()
Initializes a new instance of the EntityContext with the default schema name derived from the service name.
protected EntityContext ();
Protected Sub New ()
Applies to
EntityContext(String)
Initializes a new instance of the EntityContext with a given schema
.
protected EntityContext (string schema);
new Microsoft.WindowsAzure.Mobile.Service.EntityContext : string -> Microsoft.WindowsAzure.Mobile.Service.EntityContext
Protected Sub New (schema As String)
Parameters
- schema
- String
The schema name to use for this DbContext. It is recommended that the service name (which can be obtained from the ServiceSettingsDictionary be used as the schema name).
Applies to
EntityContext(String, String)
Initializes a new instance of the EntityContext with a given schema
and
nameOrConnectionString
.
protected EntityContext (string schema, string nameOrConnectionString);
new Microsoft.WindowsAzure.Mobile.Service.EntityContext : string * string -> Microsoft.WindowsAzure.Mobile.Service.EntityContext
Protected Sub New (schema As String, nameOrConnectionString As String)
Parameters
- schema
- String
The schema name to use for this DbContext. It is recommended that the service name (which can be obtained from the ServiceSettingsDictionary be used as the schema name).
- nameOrConnectionString
- String
The connection string name or connection string to use.
Applies to
Azure SDK for .NET