Sometimes it's the little things in life. In my case, I've been struggling
to do a programmatic configure (so I could hide NHibernate completely behind
an API).
Jason Dentler's NHibernate 3.0 Cookbook arrived in the mail yesterday. The
example on page 57 allowed me to write this:
config.Proxy( proxy => proxy.ProxyFactoryFactory<ProxyFactoryFactory>() );
config.DataBaseIntegration( db =>
{
db.ConnectionProvider<global::NHibernate.Connection.DriverConnectionProvider
>();
db.Driver<global::NHibernate.Driver.SqlClientDriver>();
db.Dialect<MsSql2008Dialect>();
db.ConnectionString = "my connection string";
} );
Can't say I really understand what the hell this is doing, but damn if it
doesn't work. Thanks Jason!
Do yourself a favor and put this book on your holiday wish list.
- lee
--
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.