How to set the expectation on SqlDelete() In Nhibernate Mapping -
hello creating application in nhibernate , want execute stored procedure. able call stored procedure need set expectation on sql delete.
i calling
public reviewmap() { table("reviews"); sqldelete("exec deletereview ?"); list(x => x.objectives, m => { m.table("objectives"); m.cascade(cascade.all.include(cascade.deleteorphans)); m.key(k => k.column("reviewid")); m.where("deletiondate null"); m.orderby("orderno"); m.index(x => x.column("orderno")); m.inverse(true); }, m => m.onetomany()); }
when run code error.
batch update returned unexpected row count update; actual row count: -1; expected: 1
i guess have set expectation on sqldelete( ... can give me answer how apply that
Comments
Post a Comment