Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
DataMapper 3.0
-
None
Description
Samples
========
<procedure id="SPWithInlineParameter" parameterClass="int" resultClass="Account">
ps_SelectAccount @
</procedure>
<procedure id="SPWithInlineParameterAndOutPutParam" parameterClass="map" resultClass="Account">
ps_SelectAccountWithOutPutParam @{Account_ID,column=Account_ID}
, @
{OutPut,column=OutPut}</procedure>
<procedure id="InsertAccountViaSPAndInlineParameter" parameterClass="map" >
ps_InsertAccount
@
@{FirstName,column=Account_FirstName},
@{LastName,column=Account_LastName},
@{EmailAddress,column=Account_Email,nullValue=no_email@provided.com},
@{BannerOption,column=Account_Banner_Option,dbType=Varchar,type=bool},
@{CartOption,column=Account_Cart_Option,handler=HundredsBool}
</procedure>
<procedure id="InsertAccountViaSPWithDefaultParameter" parameterClass="map" >
ps_InsertAccountWithDefault
@{Id,column=Account_ID}
,
@
@{LastName,column=Account_LastName},
@{EmailAddress,column=Account_Email,nullValue=no_email@provided.com}
</procedure>
<procedure id="InsertAccountViaSPWithDynamicParameter" parameterClass="map" >
ps_InsertAccountWithDefault
@{Id,column=Account_ID}
,@{FirstName,column=Account_FirstName}
,@
{LastName,column=Account_LastName},@
{EmailAddress,column=Account_Email,nullValue=no_email@provided.com} <isNotNull property="NullBannerOption">
,@
</isNotNull>
@
</procedure>
Can be use in conjunction with procedure default parameter
REATE PROCEDURE dbo.[ps_InsertAccountWithDefault]
@Account_ID [int],
@Account_FirstName [nvarchar](40),
@Account_LastName [varchar](32),
@Account_Email [varchar](128),
@Account_Banner_Option [varchar](255)='Non',
@Account_Cart_Option [int] =200
AS
...