コード例 #1
0
        public Mapping(XmlNode definition, DomainGeneratorSession session)
        {
            this.Session = session;

            // Custom settings:
            this.Settings = new CustomSettings(definition);

            // Set collections:
            this.Classes    = new List <MapClass>();
            this.Namespaces = new List <Namespace>();

            // Read attributes:
            this.NamespaceUri           = definition.Attributes["namespace"].ValueOr("urn:arebis.be:customers:undefined-namespace");
            this.DefaultBaseClass       = definition.Attributes["defaultBaseClass"].ValueOr("System.Object");
            this.DefaultCollectionClass = definition.Attributes["defaultCollectionClass"].ValueOr("System.Collections.Generic.List<{0}>");

            // Add remainder of the mapping:
            this.AppendMapping(definition);
        }
コード例 #2
0
 public TypeManager(DomainGeneratorSession domainGeneratorSession)
 {
     this.domainGeneratorSession = domainGeneratorSession;
     this.EdmManager             = new EdmManager();
 }