Exemplo n.º 1
0
        private void ReadProcedureOptions(XmlTextReader xml)
        {
            // read the procedure def
            var po = new ProcedureOptions(xml);

            // is this the default?
            if (po.Name == "?")
            {
                if (_default != null)
                {
                    throw new LineNumberedException(
                              xml.LineNumber,
                              xml.LinePosition,
                              "You cannot include more than one default (Name=\"?\") stored procedures."
                              );
                }
                _default = po;
            }
            else
            {
                _options[po.Name] = po;
            }
        }
Exemplo n.º 2
0
        private void ReadProcedureOptions(XmlTextReader xml)
        {
            // read the procedure def
            var po = new ProcedureOptions(xml);

            // is this the default?
            if (po.Name == "?")
            {
                if (_default != null)
                {
                    throw new LineNumberedException(
                        xml.LineNumber,
                        xml.LinePosition,
                        "You cannot include more than one default (Name=\"?\") stored procedures."
                    );
                }
                _default = po;
            }
            else
            {
                _options[po.Name] = po;
            }
        }