I'm inserting bunch of records into DB using foreach loop and have
adonet.batch_size property set to 100. I want to ignore and log those
records that couldn't be inserted. But when a record couldn't be
inserted because of unique constraint I get this and none of the
records is inserted:

An AssertionFailure occurred - this may indicate a bug in NHibernate
or in your custom types.
NHibernate.AssertionFailure: null id in Domain.School entry (don't
flush the Session after an exception occurs)


Thanks in advanced,
Zeeshan

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to