Significant SP related changes in new 2.1.0 Alpha NH

  • 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.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s