|
Hello, Just wondering if what I am attempting is at all possible, I
am trying to dynamically select a stored procedure in my mapping file as below: <procedure id="Inventory.Select" resultMap="Inventory.SelectResult" parameterMap="Inventory.ParameterMap" > <dynamic> <isNotEmpty property="EffectiveDate"> dbo.SelectInventoryFromHistory </isNotEmpty> <isEmpty property="EffectiveDate"> dbo.SelectInventoryFromCurrent </isEmpty> </dynamic> </procedure> The problem I am running into is that it appears the
parameterMap is not being populated when I add the <dynamic> tag and
therefore I get an ArgumentOutOfRange exception because iBatis is trying to
retrieve the values from the Parameter Map but no Parameter Map has been
loaded. Is there a way that I can specify an inline parameter map
with a stored procedure call? Thanks, Nick |
- Dynamically Selecting a Stored Procedure Nick Riebeek
- Re: Dynamically Selecting a Stored Procedure Gilles Bayon

