SecondPass.. and a usual a nice test or mappins + classes wouldmhelp,a lotmtomunderstand what you are talking about, which are yours needs. And... Since BuildSessionFactory does not change the DB I would see which is your NH configuration, if and where you are using the schemaexport and which are the differences in DB between 2, aparently, calls of schemaexport/schemaupdate
-- Fabio Maulo El 22/09/2010, a las 10:40, s_tristan <[email protected]> escribió: > I'm sorry, but I work with NH since version 1.2, problem with adding > columns - for the first time. > I have a set of mapping files - 34 classes mapped to 18 tables (table > per class hierarchy inheritance pattern is used). > I use FNH to generate and import that mappings into configuration: > var nhCfg=Fluently.Configure() > ... > ... > .BuildConfiguration > At this step in configuration all classes and tables are correct. > After nhCfg.BuildSessionFactory in the 2 tables I was found one more > column with foreing key. > I can't understand - is the method BuildMappings() makes changes to > the relational model in configuration? > And where to start finding issue? (in my mappings? debugging NH > sources?) > Thanks! > > On 22 сен, 14:26, Fabio Maulo <[email protected]> wrote: >> NHibernate is stupid as any computer is a very fast stupid and nothing more. >> To do the right thing NHibernate and your computer need your help. >> In the case of NHibernate you can instruct it about how create you DB using >> mapping files:http://nhforge.org/doc/nh/en/index.html#quickstart-intro >> >> >> >> >> >> On Wed, Sep 22, 2010 at 8:21 AM, s_tristan <[email protected]> wrote: >>> My problem that my class mappings successfully loaded in >>> configuration, but after calling BuildMappings() (that method called >>> also while building session factory) NHibernate adds in some of the >>> tables stupid columns, and that very confuses me. >> >>> -- >>> 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]<nhusers%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/nhusers?hl=en. >> >> -- >> Fabio Maulo- Скрыть цитируемый текст - >> >> - Показать цитируемый текст - > > -- > 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. > -- 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.
