예제 #1
0
        public override void Parse(XmlNode dom)
        {
            this.Name = dom.Attributes["Name"].Value;

            foreach (XmlNode n in dom.ChildNodes)
            {
                if (n.Name == "EntityTypeMapping")
                {
                    var mapping = new EntityTypeMapping();
                    mapping.Parse(n);
                    mapping.Parent = this;

                    this.EntityTypeMappings.Add(mapping.TypeName, mapping);
                }
            }
            base.Parse(dom);
        }
예제 #2
0
        public override void Parse(XmlNode dom)
        {
            this.Name = dom.Attributes["Name"].Value;

            foreach (XmlNode n in dom.ChildNodes)
            {
                if (n.Name == "EntityTypeMapping")
                {
                    var mapping = new EntityTypeMapping();
                    mapping.Parse(n);
                    mapping.Parent = this;

                    this.EntityTypeMappings.Add(mapping.TypeName, mapping);
                }

            }
            base.Parse(dom);
        }