Heh, its a bit of an off idea atm, I would like to insert test data like NDBUnit for example but use my existing domain/mappings. For this I need to be able to insert with a known Id. With the generator I cannot do this, but changing it to assigned works. It seems to be working for now.
Cheers Stefan On Mon, Apr 6, 2009 at 2:35 PM, Fabio Maulo <[email protected]> wrote: > 2009/4/6 Stefan Sedich <[email protected]> >> >> var config = new Configuration().Configure(); >> >> foreach (var mapping in config.ClassMappings) { >> if (mapping.Identifier != null) >> ((SimpleValue) >> mapping.Identifier).IdentifierGeneratorStrategy = "assigned"; >> } >> >> _sessionFactory = config.BuildSessionFactory(); > > > Only a curiosity... > For what ? > -- > Fabio Maulo > > > > -- Stefan Sedich Software Developer http://weblogs.asp.net/stefansedich --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
