Ok, i try and serach and try again, and now its nearly as it should be.
One Problem are still exist:
I insert with a store procedure (SP) into my Database.
Code:
<sql-insert check="none">exec SetDocument ?,?,?,?</sql-insert>
Nhibernate insert first with the SP and update the the insertet row with the reference form the "array above"
Code:
exec SetDocument ?,?,?,?
UPDATE AdressBuchAdresse SET Id_key = ?, Id_Index = ? WHERE Id = ?
Here ist the Problem: if a row with the special Value (for example Vorname) exist in the database, the store procedure doesnt insert a new one. Insted of insert the SP return the ID value from the special row.
This returned ID should NHibenate use in the next steps instead off the originally inserted value in the SP. Especially in the Update statement NHibernate should use these value.
Now the Apllication crashs because NHibernates SQL-Update expected 1 but return 0 rows(because the ID not exist).
The two alternative sollutions...(second is the better one)
1) how can i use a return Value from a SP in a sql-insert tag
2) Cann i say NHibernate, that it is ok when an update return o rows.
Greetz and many thnx for your support!!
teLLy