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)
Inheritance Hierarchy
System.Object
System.Data.Entity.DbContext
Microsoft.WindowsAzure.Mobile.Service.EntityContext
Syntax
public abstract class EntityContext : DbContext
public ref class EntityContext abstract : DbContext
[<AbstractClass>]
type EntityContext =
class
inherit DbContext
end
Public MustInherit Class EntityContext
Inherits DbContext
Constructors
Name | Description | |
---|---|---|
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 schema. |
|
EntityContext(String, String) | Initializes a new instance of the EntityContext with a given schema and nameOrConnectionString. |
Properties
Name | Description | |
---|---|---|
ChangeTracker | (Inherited from DbContext.) |
|
Configuration | (Inherited from DbContext.) |
|
Database | (Inherited from DbContext.) |
|
Schema | 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. |
Methods
Name | Description | |
---|---|---|
Dispose() | (Inherited from DbContext.) |
|
Dispose(Boolean) | (Inherited from DbContext.) |
|
Entry(Object) | (Inherited from DbContext.) |
|
Entry<TEntity>(TEntity) | (Inherited from DbContext.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
GetValidationErrors() | (Inherited from DbContext.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
OnModelCreating(DbModelBuilder) | (Overrides DbContext.OnModelCreating(DbModelBuilder).) |
|
SaveChanges() | (Inherited from DbContext.) |
|
SaveChangesAsync() | (Inherited from DbContext.) |
|
SaveChangesAsync(CancellationToken) | (Inherited from DbContext.) |
|
Set(Type) | (Inherited from DbContext.) |
|
Set<TEntity>() | (Inherited from DbContext.) |
|
ShouldValidateEntity(DbEntityEntry) | (Inherited from DbContext.) |
|
ToString() | (Inherited from Object.) |
|
ValidateEntity(DbEntityEntry, IDictionary<Object, Object>) | (Inherited from DbContext.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsAzure.Mobile.Service Namespace
Return to top