first:
INSERT
INTO
A
(
Version,
Number)
VALUES
(
@p0,
@p1)
;
@p0 = 1,
@p1 = '33'
ERROR:
Could not synchronize database state with session
NHibernate.HibernateException: An exception occurred when executing
batch queries ---> System.Data.SqlClient.SqlException: Violation of
UNIQUE KEY constraint 'UQ__A__44BEDD8F404E3632'. Cannot insert
duplicate key in object 'dbo.A.
Second
UPDATE
A
SET
Version = @p0,
Number = @p1
WHERE
AId = @p2
@p0 = 2,
@p1 = '3000'
@p2 = 389e0c7b-a0ee-4dba-8826-9c4800fcfe01
ERROR:
Could not synchronize database state with session
NHibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect):
[A#389e0c7b-a0ee-4dba-8826-9c4800fcfe01]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---