Significant SP related changes in new 2.1.0 Alpha NH
2009 March 24
- Identity generator class can work with sql-insert SP now. http://nhjira.koah.net/browse/NH-727
- One table per hierarchy inheritance can all use the sql-insert, update, delete declaration in root mapping file.
- Duplicate property is not allowed in mapping file, including those key columns in composite-id section. We were having ‘extra update when inserting’ and ‘Invalid Index N for this SqlParameterCollection with Count=N error’, both are caused by this new restriction. By removing the duplication, problem solved.
- The Restrictions static class (used call Expression?) can only access those field defined in mapping file, before it can access all properties in class, does not matter it’s in mapping or not.