public PropertyImpl(string name) : this() { this.name = name; if (!string.IsNullOrEmpty(name)) { OldNames.Add(name); } }
/// <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; }
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()); } } } } }