How can I specify the length of string input parameters of a stored procedure in Nhibernate mapping files.
this is my mapping contents
<sql-query name="Sp_News" resultset-ref="NewsPackResultSet" cacheable="false">
<query-param name="SearchString" type="System.String" />
<query-param name="StartDate" type="System.DateTime" />
exec dbo.Sp_News:SearchString,:StartDate
</sql-query>
When the length of SearchString parameter is more than 4000 characters, the Nhibernate Truncates that parameter values. How can i solve this limitation?
any help would be appreciated.
Found this question and also found the answer:
NHibernateUtil.StringClob is the key 🙂