Example #1
0
 public void LoadCommon(XmlElement xml)
 {
     LoadBase(xml);
     if (xml.HasAttribute("name"))
     {
         Name = xml.GetAttribute("name");
     }
     XmlTool.LoadSpecificAttributes(SpecificData, "specific.", xml);
 }
Example #2
0
        private void LoadInternal(XmlElement xml)
        {
            m_dataType = DbTypeBase.Load(xml);
            XmlTool.LoadSpecificAttributes(SpecificData, "colspec.", xml);
            var defval = xml.FindElement("Default");

            if (defval != null)
            {
                m_defaultValue = SqlExpression.Load(defval);
            }
            Domain = NameWithSchema.LoadFromXml(xml, "domain.");
        }
Example #3
0
 protected virtual void LoadFromXml(XmlElement xml)
 {
     XmlTool.LoadProperties(this, xml);
     XmlTool.LoadSpecificAttributes(SpecificData, "typespec.", xml);
     //if (xml.HasAttribute("array")) ArraySpec = new ArrayDimensions(xml.GetAttribute("array"));
 }