You shouldn't need to create that PersistenceModel at all. Use the Mappings
call <http://wiki.fluentnhibernate.org/show/FluentConfiguration> .
On Wed, Mar 25, 2009 at 12:08 AM, Dru Sellers <[email protected]> wrote:

>
> how do I get the two of these to work together? is this it?
>
> Configuration nhcfg = Fluently.Configure()
>                .Database(() =>
> MsSqlConfiguration.MsSql2005.ConnectionString(x =>
>
>  {
>
>           x.Database("FocusPage");
>
>           x.TrustedConnection();
>
>           x.Server(".");
>
>       }))
>                .ExposeConfiguration(cfg=>
>                                     {
>                                         var pm = new PersistenceModel();
>                                         pm.ConventionFinder.Add(new
> UriTypeConvention());
>                                         pm.Configure(cfg);
>                                     })
>                .BuildConfiguration();
>
> -d
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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