Exemple #1
0
        internal MappingDefinitionInformation(IEnumerable <ITypeMappingDefinition> mappingDefinitions, IEnumerable <IChildAssociationPostprocessing> childPostprocessings, NamingConventions fromConventions, NamingConventions toConventions)
        {
            this.aTypeMappingDefinitionContainer = new TypeMappingDefinitionContainer(this, mappingDefinitions);

            this.Mappings           = new MappingContainer(this.aTypeMappingDefinitionContainer);
            this.UnresolvedMappings = new UnresolvedMappingContainer(this.Mappings, this.aTypeMappingDefinitionContainer);
            this.SpecialRules       = new SpecialRulesContainer(this.aTypeMappingDefinitionContainer);

            this.aChildPostprocessings = childPostprocessings.ToList();

            this.FromConventions = fromConventions;
            this.ToConventions   = toConventions;

            this.FromConventions.SetMappingDefinition(this);
            this.ToConventions.SetMappingDefinition(this);
        }
 internal MappingContainer(TypeMappingDefinitionContainer definitionContainer)
 {
     this.aDefinitionContainer = definitionContainer;
     this.aMappings            = new Dictionary <TypePair, IMapping>();
 }
 internal UnresolvedMappingContainer(MappingContainer container, TypeMappingDefinitionContainer definitionContainer)
 {
     this.aContainer           = container;
     this.aDefinitionContainer = definitionContainer;
 }
 internal SpecialRulesContainer(TypeMappingDefinitionContainer definitionContainer)
 {
     this.aDefinitionContainer = definitionContainer;
 }