Index: Procedure.cs =================================================================== --- Procedure.cs (revision 417192) +++ Procedure.cs (working copy) @@ -2,7 +2,7 @@ #region Apache Notice /***************************************************************************** * $Header: $ - * $Revision: $ + * $Revision$ * $Date$ * * iBATIS.NET Data Mapper @@ -27,6 +27,7 @@ #region Using using System; using System.Data; +using System.Xml ; using System.Xml.Serialization; using IBatisNet.Common.Exceptions; @@ -42,10 +43,15 @@ [Serializable] [XmlRoot("procedure", Namespace="http://ibatis.apache.org/mapping")] public class Procedure : Statement - { + { + #region Fields - #region Properties - /// + [NonSerialized] + private bool _useReturnValue = false; + #endregion + + #region Properties + /// /// The type of the statement StoredProcedure. /// [XmlIgnoreAttribute] @@ -63,7 +69,21 @@ get { return string.Empty; } set { } } + + /// + /// Should procedure return the return value from the procedure + /// + [XmlIgnore] + public bool UseReturnValue + { + get { return _useReturnValue; } + set { _useReturnValue = value; } + } + + #endregion + + #region Constructor (s) / Destructor /// @@ -86,6 +106,12 @@ { throw new ConfigurationException("The parameterMap attribute is required in the procedure tag named '"+ this.Id +"'."); } + + XmlAttribute attrUseReturnValue = configurationScope.NodeContext.Attributes[ "useReturnValue" ]; + if ( attrUseReturnValue != null ) + { + _useReturnValue = bool.Parse ( attrUseReturnValue.Value ); + } } #endregion