public virtual void FromXml(XmlElement element) { this.CodingStyle = (CodingStyle)CodingStyle.Parse(typeof(CodingStyle), element.Attributes["CodingStyle"].Value); this.fieldName = element.Attributes["FieldName"].Value; this.table = element.Attributes["Table"].Value; this.foreignKeyColumnName = element.Attributes["ForeignKeyColumnName"].Value; this.isComposite = bool.Parse(element.Attributes["IsComposite"].Value); this.isElement = bool.Parse(element.Attributes["IsElement"].Value); this.relationDirection = (RelationDirection)RelationDirection.Parse(typeof(RelationDirection), element.Attributes["RelationDirection"].Value); this.type = element.Attributes["RelationType"].Value; }
public override void FromXml(XmlElement element) { base.FromXml(element); this.CodingStyle = (CodingStyle)CodingStyle.Parse(typeof(CodingStyle), element.Attributes["CodingStyle"].Value); this.fieldName = element.Attributes["FieldName"].Value; this.isComposite = bool.Parse(element.Attributes["IsComposite"].Value); this.relationDirection = (RelationDirection)RelationDirection.Parse(typeof(RelationDirection), element.Attributes["RelationDirection"].Value); XmlElement masterElement = (XmlElement)element.SelectSingleNode("Master"); master = new FkRelation(); master.FromXml(masterElement); }
public override void FromXml(XmlElement element) { base.FromXml(element); this.CodingStyle = (CodingStyle)CodingStyle.Parse(typeof(CodingStyle), element.Attributes["CodingStyle"].Value); this.fieldName = element.Attributes["FieldName"].Value; this.foreignCodingStyle = (CodingStyle)CodingStyle.Parse(typeof(CodingStyle), element.Attributes["ForeignCodingStyle"].Value); this.foreignFieldName = element.Attributes["ForeignFieldName"].Value; this.foreignIsComposite = bool.Parse(element.Attributes["ForeignIsComposite"].Value); this.isComposite = bool.Parse(element.Attributes["IsComposite"].Value); this.name = element.Attributes["Name"].Value; this.owningTable = element.Attributes["OwningTable"].Value; this.relatedTable = element.Attributes["RelatedTable"].Value; this.relationDirection = (RelationDirection)RelationDirection.Parse(typeof(RelationDirection), element.Attributes["RelationDirection"].Value); this.relationName = element.Attributes["RelationName"].Value; }