private Integrity ParseIntegrity(XmlNode Node) { Integrity NewIntegrity = new Integrity(); NewIntegrity.Name = ReadAttribute(Node, "NAME"); NewIntegrity.Base = ReadAttribute(Node, "BASE"); NewIntegrity.Foreign = ReadAttribute(Node, "FOREIGN"); NewIntegrity.Refresh = ReadAttribute(Node, "UPDATE"); NewIntegrity.Exclude = ReadAttribute(Node, "DELETE"); NewIntegrity.System = ReadAttribute(Node, "SYSTEM"); NewIntegrity.Trigger = ReadAttribute(Node, "TRIGGER"); NewIntegrity.Type = ReadAttribute(Node, "TYPE"); NewIntegrity.Message = ReadAttribute(Node, "MSG"); foreach (XmlNode ChildNode in Node.ChildNodes) { switch (ChildNode.Name.ToUpper()) { case "FIELD": NewIntegrity.Fields.Add(ParseIntegrityField(ChildNode)); break; } } return(NewIntegrity); }
private Integrity ParseIntegrityRelation(XmlNode ChildNode) { Integrity NewIntegrity = new Integrity(); NewIntegrity.Name = ReadAttribute(ChildNode, "NAME"); NewIntegrity.Base = ReadAttribute(ChildNode, "BASETABLE"); NewIntegrity.Foreign = ReadAttribute(ChildNode, "FOREIGNTABLE"); foreach (XmlNode Node in ChildNode.ChildNodes) { switch (Node.Name.ToUpper()) { case "RELATIONOF": NewIntegrity.Fields.Add(ParseIntegrityField(Node)); break; } } return(NewIntegrity); }
public virtual void Add(Integrity NewInregrity) { this.List.Add(NewInregrity); }