var mapper = new ModelMapper(); mapper.AddMappings(typeof(test).Assembly().GetExportedTypes()); configuration.AddDeserializedMapping(mapper.CompileMappingForAllExplicitAddedEntities(), "MyWholeDomain");
On Mon, Apr 11, 2011 at 12:11 PM, Luka <[email protected]> wrote: > Hi, > I like very much the new mapping by code in nhibernate 3.2. > What I don't know is this: > I have build a mapping for my class like this: > public class test:ClassMapping<Application> > { > public test() > { > Id(x=>x.Id, map=> map.Generator(Generators.GuidComb)); > Property(x=>x.Description, > map=>map.Column("Description")); > } > } > > How to add this mapping to the NHibernate.Cfg.Configuration so it can > be compiled when SessionFactory is build? > > thanks > > -- > 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. > > -- 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.
