示例#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;
            }
        }
示例#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;
            }
        }