Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public virtual void Add(Integrity NewInregrity)
 {
     this.List.Add(NewInregrity);
 }