I'm trying to use a stored Proc that select from 2 tables, performs some processing then return the Data. However I get a key not found exception when loading the XML config.
This is the config I'm using...
<?xml version="1.0" encoding="utf-8" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" > <sql-query name="GetApplInstrumentsById" > <return class="WindowsFormsSql.Model.TestInstrument, WindowsFormsSql"> <return-property name="SubMarket" column="SubMarket" /> <return-property name="ValueDec" column="ValueDec" /> <return-property name="ValueFmt" column="ValueFmt" /> <return-property name="ValueMax" column="ValueMax" /> <return-property name="ValueMin" column="ValueMin" /> <return-property name="ValueTick" column="ValueTick" /> <return-property name="ValueType" column="ValueTypeStr" /> <return-property name="IsApplicationInstrument" column="IsApplicationInstrument" /> </return> exec dbo.p_GetInstrumentsById ? </sql-query> </hibernate-mapping>
The stored Proc returns more data than that, but I only need some of the values.
|