MyDbContext Classe

Classe Entity Framework pour la base de données Mediatek86.

Definition

Espace de nom: Mediatek86.Data
Assembly: Mediatek86 (in Mediatek86.exe) Version: 1.0.0+385b7dbc3a0af9bd7357d6111ce58d796c78aada
XMLNS pour XAML: Nom mappé à un xmlns.
C#
public class MyDbContext : DbContext
Inheritance
Object    DbContext    MyDbContext

Constructeurs

MyDbContext Constructeur de la classe MyDbContext.

Propriétés

Absence Définit un DbSet pour la table Responsable. Cela permet d'accéder aux données de la table Responsable et de les manipuler.
ChangeTracker Provides access to features of the context that deal with change tracking of entities.
(Hérité de DbContext)
Configuration Provides access to configuration options for the context.
(Hérité de DbContext)
Database Creates a Database instance for this context that allows for creation/deletion/existence checks for the underlying database.
(Hérité de DbContext)
Motif Définit un DbSet pour la table Motif. Cela permet d'accéder aux données de la table Motif et de les manipuler.
Personnel Définit un DbSet pour la table Personnel. Cela permet d'accéder aux données de la table Personnel et de les manipuler.
Responsable Définit un DbSet pour la table Responsable. Cela permet d'accéder aux données de la table Responsable et de les manipuler.
Service Définit un DbSet pour la table Service. Cela permet d'accéder aux données de la table Service et de les manipuler.

Méthodes

Dispose Calls the protected Dispose method.
(Hérité de DbContext)
Dispose(Boolean) Disposes the context. The underlying ObjectContext is also disposed if it was created is by this context or ownership was passed to this context when this context was created. The connection to the database (DbConnection object) is also disposed if it was created is by this context or ownership was passed to this context when this context was created.
(Hérité de DbContext)
Entry(Object) Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.
(Hérité de DbContext)
Entry``1(UMP) Gets a DbEntityEntry object for the given entity providing access to information about the entity and the ability to perform actions on the entity.
(Hérité de DbContext)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Hérité de Object)
GetTypeGets the Type of the current instance.
(Hérité de Object)
GetValidationErrors Validates tracked entities and returns a Collection of DbEntityValidationResult containing validation results.
(Hérité de DbContext)
MemberwiseCloneCreates a shallow copy of the current Object.
(Hérité de Object)
OnModelCreating This method is called when the model for a derived context has been initialized, but before the model has been locked down and used to initialize the context. The default implementation of this method does nothing, but it can be overridden in a derived class such that the model can be further configured before it is locked down.
(Hérité de DbContext)
SaveChanges Saves all changes made in this context to the underlying database.
(Hérité de DbContext)
SaveChangesAsync Asynchronously saves all changes made in this context to the underlying database.
(Hérité de DbContext)
SaveChangesAsync(CancellationToken) Asynchronously saves all changes made in this context to the underlying database.
(Hérité de DbContext)
Set(Type) Returns a non-generic DbSet instance for access to entities of the given type in the context and the underlying store.
(Hérité de DbContext)
Set``1 Returns a DbSet instance for access to entities of the given type in the context and the underlying store.
(Hérité de DbContext)
ShouldValidateEntity Extension point allowing the user to override the default behavior of validating only added and modified entities.
(Hérité de DbContext)
ValidateEntity Extension point allowing the user to customize validation of an entity or filter out validation results. Called by GetValidationErrors.
(Hérité de DbContext)

Voir aussi