Tips and Tricks in a world of Mix

Posts tagged ‘flluent nhibernate’

Fluent Nhibernate Trigger-Identity problem

In our case we work with Oracle 10g with FluentNhibernate 1.0.0.597 and NHibernate 2.1.2.4000 .
We have a legacy system based on the db used in our new website .
It means any change on the db may influence the old system.
When we mapped through GeneratedBy.Sequence(“My_Sequence”) , the sequence progressed but it progressed twice – once by NHibernate and once by the trigger on the table.
solution :

Tag Cloud

%d bloggers like this: