public override Return VisitReturn(Return r)
            {
                if (r == null)
                    return null;

                writer.WriteStartElement("Return");

                if (r.Type != null)
                    writer.WriteAttributeString("Type", r.Type);

                if (r.DbType != null)
                    writer.WriteAttributeString("DbType", r.DbType);

                writer.WriteEndElement();
                return r;
            }
 public override Return VisitReturn(Return r)
 {
     return r;
 }
            public override Return VisitReturn(Return r)
            {
                if (r == null)
                    return null;

                return new Return(r.Type) {DbType = r.DbType};
            }
Beispiel #4
0
 public override Return VisitReturn(Return r)
 {
     return(r);
 }
Beispiel #5
0
            private static Return ReadReturn(XmlTextReader reader)
            {
                ValidateAttributes(reader, new[] {"Type", "DbType"});
                var r = new Return("");

                string attribute = reader.GetAttribute("Type");
                if (attribute == null)
                    throw Error.RequiredAttributeMissingViolation("Type", reader.LineNumber);

                r.Type = attribute;
                r.DbType = reader.GetAttribute("DbType");
                AssertEmptyElement(reader);
                return r;
            }