C# Class Tests.DataClasses.SampleWebAppDb

Inheritance: DbContext, IGenericServicesDbContext
Afficher le fichier Open project: JonPSmith/GenericServices Class Usage Examples

Méthodes publiques

Méthode Description
SaveChanges ( ) : int

This has been overridden to handle: a) Updating of modified items (see p194 in DbContext book)

SaveChangesAsync ( ) : Task

Same for async

Méthodes protégées

Méthode Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

Private Methods

Méthode Description
HandleChangeTracking ( ) : void

This handles going through all the entities that have changed and seeing if they need any special handling.

Method Details

OnModelCreating() protected méthode

protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
Résultat void

SaveChanges() public méthode

This has been overridden to handle: a) Updating of modified items (see p194 in DbContext book)
public SaveChanges ( ) : int
Résultat int

SaveChangesAsync() public méthode

Same for async
public SaveChangesAsync ( ) : Task
Résultat Task