Setting the SqlCheck is not supported in the ByCode mapping. The patch fixes that.
Description
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
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?
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