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?

Julian Maughan November 26, 2011 at 7:47 AM

Could you also provide tests?

Details

Assignee

Unassigned

Reporter

Components

Affects versions

Priority

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?