Beispiel #1
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationInverseChanged(NavigationBuilder, Inverse, OldInverse);
Beispiel #2
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnNavigationRemoved(
     SourceEntityTypeBuilder, TargetEntityTypeBuilder, NavigationName, MemberInfo);
Beispiel #3
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationAnnotationChanged(
     NavigationBuilder, Name, Annotation, OldAnnotation);
Beispiel #4
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyAnnotationChanged(
     RelationshipBuilder, Name, Annotation, OldAnnotation);
Beispiel #5
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyDependentRequirednessChanged(RelationshipBuilder);
Beispiel #6
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeMemberIgnored(EntityTypeBuilder, Name);
Beispiel #7
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeAnnotationChanged(
     EntityTypeBuilder, Name, Annotation, OldAnnotation);
Beispiel #8
0
 /// <summary>
 ///     This is an internal API that supports the Entity Framework Core infrastructure and not subject to
 ///     the same compatibility standards as public APIs. It may be changed or removed without notice in
 ///     any release. You should only use it directly in your code with extreme caution and knowing that
 ///     doing so can result in application failures when updating to a new Entity Framework Core release.
 /// </summary>
 public ConventionContext([NotNull] ConventionDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
 public RunVisitor(ConventionDispatcher dispatcher)
 {
     Dispatcher = dispatcher;
 }
Beispiel #10
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypePrimaryKeyChanged(
     EntityTypeBuilder, NewPrimaryKey, PreviousPrimaryKey);
Beispiel #11
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexAdded(IndexBuilder);
Beispiel #12
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnNavigationAdded(RelationshipBuilder, Navigation);
Beispiel #13
0
 /// <summary>
 ///     This API supports the Entity Framework Core infrastructure and is not intended to be used 
 ///     directly from your code. This API may change or be removed in future releases.
 /// </summary>
 public Model([NotNull] ConventionSet conventions)
 {
     ConventionDispatcher = new ConventionDispatcher(conventions);
     Builder = new InternalModelBuilder(this);
     ConventionDispatcher.OnModelInitialized(Builder);
 }
Beispiel #14
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationRemoved(EntityTypeBuilder, Navigation);
Beispiel #15
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeAdded(EntityTypeBuilder);
Beispiel #16
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexRemoved(EntityTypeBuilder, Index);
Beispiel #17
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeRemoved(ModelBuilder, EntityType);
Beispiel #18
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexUniquenessChanged(IndexBuilder);
Beispiel #19
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeBaseTypeChanged(
     EntityTypeBuilder, NewBaseType, PreviousBaseType);
Beispiel #20
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyAdded(PropertyBuilder);
Beispiel #21
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyRemoved(EntityTypeBuilder, ForeignKey);
Beispiel #22
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyNullabilityChanged(PropertyBuilder);
Beispiel #23
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyPropertiesChanged(
     RelationshipBuilder, OldDependentProperties, OldPrincipalKey);
Beispiel #24
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyFieldChanged(PropertyBuilder, NewFieldInfo, OldFieldInfo);
Beispiel #25
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyPrincipalEndChanged(RelationshipBuilder);
Beispiel #26
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyAnnotationChanged(
     PropertyBuilder, Name, Annotation, OldAnnotation);
Beispiel #27
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationAdded(NavigationBuilder);
Beispiel #28
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyRemoved(EntityTypeBuilder, Property);
Beispiel #29
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationForeignKeyChanged(NavigationBuilder, ForeignKey, OldForeignKey);
 public override void Run(ConventionDispatcher dispatcher)
 => throw new NotImplementedException("Immediate convention scope cannot be run again");