Setting the SqlCheck is not supported in the ByCode mapping. The patch fixes that.
Description
Environment
None
Attachments
1
Activity
Show:
József Kanczler November 29, 2011 at 2:24 PM
Do you have any good test framework that can use by code mapping and stored procedures? Because in the nhibernates-test-core I couldn't find anything like that. Or do you accept any kind of unit test for it?
Julian Maughan November 26, 2011 at 7:47 AM
Could you also provide tests?
Details
Assignee
Reporter
József Kanczler
József KanczlerLabels
Components
Affects versions
Priority
Major
Who's Looking?
Open Who's Looking?
Created November 25, 2011 at 11:53 AM
Updated October 12, 2017 at 11:26 AM
Who's Looking?
The ByCode mapping doesn't support to set the SqlCheck setting for the custom sql commands.
The solution for the problem:
1.) I implemented a SqlCheck enumeration with 'None', 'Rowcount', 'Param' values (NHibernate.Mapping.ByCode.SqlCheck).
2.) The IEntitySqlsMapper interface was extended by the overloads for the SqlInsert, SqlUpdate and SqlDelete method.
For example:
void SqlInsert(string sql, SqlCheck sqlCheck);
3.) I implement the new methods for the the classes that implements the IEntitySqlsMapper.
For example:
or