public void Can_get_and_set_configuration_annotation() { var associationSetMapping = new StorageAssociationSetMapping(new AssociationSet("AS", new AssociationType("A", XmlConstants.ModelNamespace_3, false, DataSpace.CSpace)), new EntitySet()); associationSetMapping.SetConfiguration(42); Assert.Equal(42, associationSetMapping.GetConfiguration()); }
internal void Configure(StorageAssociationSetMapping associationSetMapping, DbDatabaseMapping databaseMapping) { DebugCheck.NotNull(associationSetMapping); DebugCheck.NotNull(databaseMapping); // We may apply configuration twice from two different NavigationPropertyConfiguration objects, // but that should be okay since they were validated as consistent above. // We still apply twice because each object may have different pieces of the full configuration. if (AssociationMappingConfiguration != null) { // This may replace a configuration previously set, but that's okay since we validated // consistency when processing the configuration above. associationSetMapping.SetConfiguration(this); AssociationMappingConfiguration.Configure(associationSetMapping, databaseMapping.Database, _navigationProperty); } }