hm.. thot mappinginfo was telling where to get the embedded hbm.xml files...been awhile since i was in there. It should let you take advantage of INHibernateInitializationAware which might help in configuring FNH .
On Jan 31, 11:45 pm, Rob Kitson <[email protected]> wrote: > I could be (and most likely am) wrong, but I don't see how simply extending > MappingInfo is going to get the job done. In looking at the code, it looks > like MappingInfo is a simple list of assemblies with entities that need to > be mapped. They end up in NHibernateUnitOfWorkTestContext, where they are > added to the configuration in CreateConfigs(). Maybe I'm just not groking > how configuration works, but in FNH doesn't the mapping assembly need to be > declared? This is where I'm not seeing how extending MappingInfo will help. > > Thanks. > > On Sat, Jan 31, 2009 at 8:40 PM, Mike Nichols <[email protected]>wrote: > > > > > iirc you will probably need to extend MappingInfo > > > On Jan 31, 7:36 pm, Rob Kitson <[email protected]> wrote: > > > Thanks guys. Sorry for the late response, for some reason GMail had > > > filtered all the responses to the trash... I guess I had a leftover > > filter > > > from the last time I cleaned out my account. > > > > I found the target in the RakeFile for FNH which used the NH 2.1 > > assemblies > > > and that worked great. > > > > Now I'm having issues trying to use DatabaseTestFixtureBase with FNH. > > > Haven't been able to find a lot of help on the interwebs. Any > > suggestions > > > on how I should go about getting this working would be much appreciated! > > > > Thanks again. > > > On Fri, Jan 30, 2009 at 8:30 AM, Mike Nichols <[email protected] > > >wrote: > > > > > yeah and I meant to say it isn't strong NAMED not strong typed...how > > > > about that, I call a library that gets rid of xml not-strong-typed. > > > > Funny. > > > > > On Jan 30, 6:42 am, Nathan Stott <[email protected]> wrote: > > > > > Correction: I meant it will work fine _without_ NH.Linq if you don't > > run > > > > the > > > > > unit tests. > > > > > > On Fri, Jan 30, 2009 at 7:39 AM, Nathan Stott <[email protected]> > > wrote: > > > > > > FH does have a dependency on NH.Linq, however it is only for the > > unit > > > > > > tests. If you don't run the unit tests, it will work fine with NH > > > > Linq. > > > > > > > On Thu, Jan 29, 2009 at 11:51 PM, Mike Nichols < > > > > [email protected]>wrote: > > > > > > >> Yeah I think FH takes a dependency on Nhibernate.linq (not sure) > > so i > > > > > >> stopped working on it. Note that FH isn't strong-typed either so > > you > > > > > >> may have to do that too > > > > > > >> On Jan 29, 8:05 pm, Nathan Stott <[email protected]> wrote: > > > > > >> > Rebuild fluent nhibernate from source with the version of NH > > that > > > > > >> > Rhino.Commons is using. > > > > > > >> > On Thu, Jan 29, 2009 at 9:01 PM, Ayende Rahien < > > [email protected]> > > > > > >> wrote: > > > > > >> > > I think that we have mismatched version of NH vs. FN > > > > > > >> > > On Thu, Jan 29, 2009 at 7:19 PM, Rob Kitson < > > > > [email protected] > > > > > >> >wrote: > > > > > > >> > >> Hey guys, been banging my head against the wall trying to > > figure > > > > this > > > > > >> > >> out for a bit now and thought it was about time to reach out. > > > > > > >> > >> I'm trying to use FluentNHibernate with Rhino Commons (which > > is > > > > the > > > > > >> > >> newer addition to the project). I successfully ran the build > > > > script > > > > > >> > >> for rhino-tools and copied the build folder into it's own > > folder > > > > in > > > > > >> > >> the sharedLibs folder in my project. At first I was getting > > > > compile > > > > > >> > >> time errors about the differnt versions of NHibernate that > > Rhino > > > > and > > > > > >> > >> FluentNH were compiled with, so once I found that FluentNH > > was > > > > added > > > > > >> > >> to the sharedLibs in Rhino-Tools I removed all my references > > to > > > > > >> > >> FluentNH from my solution and replaced them with references > > to > > > > the > > > > > >> > >> FluentNH assembly that was in the build output folder from > > Rhino- > > > > > >> > >> tools. > > > > > > >> > >> Now, it compiles, but when I run my tests I get this message: > > > > > > >> > >> TestCase 'PriceLister.Tests.Integration.ProductTester.Test1' > > > > failed: > > > > > >> > >> TestFixtureSetUp failed in ProductTester > > > > > >> > >> TestFixture failed: System.IO.FileLoadException : Could not > > load > > > > file > > > > > >> > >> or assembly 'NHibernate, Version=2.0.0.4000, Culture=neutral, > > > > > >> > >> PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. > > The > > > > > >> > >> located assembly's manifest definition does not match the > > > > assembly > > > > > >> > >> reference. (Exception from HRESULT: 0x80131040) > > > > > >> > >> at > > > PriceLister.Tests.Integration.BaseIntegrationFixture.InitializeNHibernate > > > > > >> > >> () > > > > > > >> > >> Any ideas? Did I miss a step? > > > > > > >> > >> Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" 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/rhino-tools-dev?hl=en -~----------~----~----~----~------~----~------~--~---
