public void Apply_should_not_discover_when_independent_constraint() { var associationType = new EdmAssociationType().Initialize(); associationType.MarkIndependent(); ((IEdmConvention<EdmAssociationType>)new TypeNameForeignKeyDiscoveryConvention()) .Apply(associationType, new EdmModel().Initialize()); Assert.Null(associationType.Constraint); }
public void Can_mark_association_as_independent() { var associationType = new EdmAssociationType(); Assert.False(associationType.IsIndependent()); associationType.MarkIndependent(); Assert.True(associationType.IsIndependent()); }
internal override void Configure( EdmAssociationType associationType, EdmAssociationEnd dependentEnd, EntityTypeConfiguration entityTypeConfiguration) { associationType.MarkIndependent(); }