Пример #1
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationInverseChanged(NavigationBuilder, Inverse, OldInverse);
Пример #2
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnNavigationRemoved(
     SourceEntityTypeBuilder, TargetEntityTypeBuilder, NavigationName, MemberInfo);
Пример #3
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationAnnotationChanged(
     NavigationBuilder, Name, Annotation, OldAnnotation);
Пример #4
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyAnnotationChanged(
     RelationshipBuilder, Name, Annotation, OldAnnotation);
Пример #5
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyDependentRequirednessChanged(RelationshipBuilder);
Пример #6
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeMemberIgnored(EntityTypeBuilder, Name);
Пример #7
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeAnnotationChanged(
     EntityTypeBuilder, Name, Annotation, OldAnnotation);
Пример #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;
 }
Пример #10
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypePrimaryKeyChanged(
     EntityTypeBuilder, NewPrimaryKey, PreviousPrimaryKey);
Пример #11
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexAdded(IndexBuilder);
Пример #12
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnNavigationAdded(RelationshipBuilder, Navigation);
Пример #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);
 }
Пример #14
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationRemoved(EntityTypeBuilder, Navigation);
Пример #15
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeAdded(EntityTypeBuilder);
Пример #16
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexRemoved(EntityTypeBuilder, Index);
Пример #17
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeRemoved(ModelBuilder, EntityType);
Пример #18
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnIndexUniquenessChanged(IndexBuilder);
Пример #19
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnEntityTypeBaseTypeChanged(
     EntityTypeBuilder, NewBaseType, PreviousBaseType);
Пример #20
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyAdded(PropertyBuilder);
Пример #21
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyRemoved(EntityTypeBuilder, ForeignKey);
Пример #22
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyNullabilityChanged(PropertyBuilder);
Пример #23
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyPropertiesChanged(
     RelationshipBuilder, OldDependentProperties, OldPrincipalKey);
Пример #24
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyFieldChanged(PropertyBuilder, NewFieldInfo, OldFieldInfo);
Пример #25
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnForeignKeyPrincipalEndChanged(RelationshipBuilder);
Пример #26
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyAnnotationChanged(
     PropertyBuilder, Name, Annotation, OldAnnotation);
Пример #27
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnSkipNavigationAdded(NavigationBuilder);
Пример #28
0
 public override void Run(ConventionDispatcher dispatcher)
 => dispatcher._immediateConventionScope.OnPropertyRemoved(EntityTypeBuilder, Property);
Пример #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");