Exemple #1
0
 void ISaveChangesOptions.ValidateDependencyGraph(DependencyGraph dependencyGraph, SaveChangesContext context)
 {
     ValidateDependencyGraphAction?.Invoke(dependencyGraph, context);
 }
Exemple #2
0
 /// <summary>
 /// The method that is called after the entity changes are applied and can be overriden to apply a general validation of the dependency graph.
 /// </summary>
 /// <param name="dependencyGraph">The dependency graph of the entities that are going to be saved.</param>
 /// <param name="context">The save changes context.</param>
 protected internal virtual void ValidateDependencyGraph(DependencyGraph dependencyGraph, SaveChangesContext context)
 {
 }