Configured in what way?
WriteMappingsTo and CompileMappings are mutually exclusive, I'm pretty sure
you shouldn't be calling both.

You should look into the Fluent
Configuration<http://wiki.fluentnhibernate.org/show/FluentConfiguration>
stuff,
which has better support for exporting mappings.

On Thu, Aug 13, 2009 at 1:25 AM, Corey Coogan <[email protected]> wrote:

>
> True.  It's from SharpArch and returns a configured Mapper.  I thought
> you might have seen it so I didn't bother changing it.
>
> On Aug 12, 4:03 pm, James Gregory <[email protected]> wrote:
> > What's the AutoPersistenceModelGenerator.Generate do? It's not one of
> ours.
> >
> > On Wed, Aug 12, 2009 at 9:58 PM, Corey Coogan <[email protected]>
> wrote:
> >
> > > This may seem like a dumb question, but I can't figure out how to get
> > > my mappings if there is an error.  It would be handy to see what's
> > > being generated before FNH tries to compile.  Here's what I have, but
> > > if there's an error with the mappings, such as what's been discussed
> > > with multiple subclasses, the XML never gets spit out.
> >
> > > var mappings = new AutoPersistenceModelGenerator().Generate();
> > >            mappings.WriteMappingsTo(DB_FOLDER_PATH);
> > >            mappings.CompileMappings();
> >
> > > Thanks,
> > > cc
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to