EntityContext Class

 

The EntityContext is an abstract base class which provides the same functionality as the DbContext scaffolded by Visual Studio. It is optional to use this base class instead of the scaffolded code when using a TableController<TData>.

Namespace:   Microsoft.WindowsAzure.Mobile.Service
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Entity (in Microsoft.WindowsAzure.Mobile.Service.Entity.dll)

System.Object
  System.Data.Entity.DbContext
    Microsoft.WindowsAzure.Mobile.Service.EntityContext

public abstract class EntityContext : DbContext

NameDescription
System_CAPS_protmethodEntityContext()

Initializes a new instance of the EntityContext with the default schema name derived from the service name.

System_CAPS_protmethodEntityContext(String)

Initializes a new instance of the EntityContext with a given schema.

System_CAPS_protmethodEntityContext(String, String)

Initializes a new instance of the EntityContext with a given schema and nameOrConnectionString.

NameDescription
System_CAPS_pubpropertyChangeTracker

(Inherited from DbContext.)

System_CAPS_pubpropertyConfiguration

(Inherited from DbContext.)

System_CAPS_pubpropertyDatabase

(Inherited from DbContext.)

System_CAPS_protpropertySchema

Gets or sets the default database schema name. This default database schema name is used for database objects that do not have an explicitly configured schema name. If the schema name is null or empty then a default schema name is derived from the service name.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: