コード例 #1
0
        public PropertyImpl(string name)
            : this()
        {
            this.name = name;

            if (!string.IsNullOrEmpty(name))
            {
                OldNames.Add(name);
            }
        }
コード例 #2
0
        /// <summary>
        /// Copy constructor.
        /// </summary>
        /// <param name="p"></param>
        public PropertyImpl(Property p)
        {
            name = p.Name;

            if (!string.IsNullOrEmpty(name))
            {
                OldNames.Add(name);
            }

            type           = p.Type;
            nhibernateType = p.NHibernateType;
            readOnly       = p.ReadOnly;
            options        = new ValidationOptions(p.ValidationOptions);
            //isVirtual = p.IsVirtual;
            isKeyProperty = p.IsKeyProperty;
        }
コード例 #3
0
 private void ParseHistory(XmlNode iNode)
 {
     if (iNode != null && iNode.Name.Equals("history"))
     {
         if (iNode.HasChildNodes)
         {
             foreach (XmlNode lChildNode in iNode.ChildNodes)
             {
                 if (lChildNode.Name == "misspelling")
                 {
                     OldNames.Add(TambonHelper.GetAttribute(lChildNode, "name").Trim());
                 }
                 if (lChildNode.Name == "rename")
                 {
                     OldNames.Add(TambonHelper.GetAttribute(lChildNode, "oldname").Trim());
                 }
             }
         }
     }
 }