Hello guys,
I´m using Nhibernate 1.1 and .net 1.1. and im passing by this situation:
My client asked me to remove some interface validation (date less than other, not equal zero, etc.) and now im getting an weird error on
this method.
public override void AddToBatch(int expectedRowCount) { int rowCount = this.ExecuteNonQuery( this.GetCommand() );
if ( expectedRowCount>0 && expectedRowCount!=rowCount ) { throw new HibernateException("SQL update or deletion failed (row not found)"); }
}
When I try to update/insert in a row that looks identical with other on the grid BUT, they have different Guids ID in NHib Bag, i get the error message.
but when i come back and change on single field (ex: name field) with the same records, the nhibernate does the job and makes the Insert or Update.
have you ever seen something like this?
ps. Im using Sql Server 2005
Thank you very much
ernesto
|