I use NHibernates schema export functionality to create and update the 
database.
However sometimes (seems to happen on slow machines more frequently) 
NHibernate generates incorrect alter table scripts. I disabled the schema 
export and log the statements to debug the problem.

This problem occurs randomly and affects randomly different tables.

An example script is: *alter table dbo.VlogNet_NumberGroups add 
DKS_P03_Artikelgruppe BIGINT*
However the "*DKS_P03_Artikelgruppe*" column belongs to a completely 
different mapping (not the *NumberGroups* map) and to make it worse this 
mapping is even configured to NHibernate.Mapping.ByCode.SchemaAction.None.

I posted the same question with code samples on stack 
overflow<http://stackoverflow.com/questions/13417799/nhibernate-schema-export-alters-wrong-tables-possible-bug-in-nh>too.

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/nhusers/-/K8pDPjXDje4J.
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.

Reply via email to