I have just tried this against what tests I have and it looks like its mostly going to work, well data retrieval seems ok.
The only problem I had was this works OK session.Linq<BobMemberEmailSentDto>().Where(w => w.PaymentSystemId == paymentSystemId) .Take(top) but this does not session.Query<BobMemberEmailSentDto>().Where(w => w.PaymentSystemId == paymentSystemId) .Take(top) It appears that .Query doesn't like a take after a where... Upwards and onwards. Thanks for any responses so far, please fell free to chirp in if you can help. Ta On Friday, April 20, 2012 2:43:28 PM UTC+1, Rippo wrote: > > Hi > > > > Has anyone upgraded a NH 2.1 asp.mvc project to NH3.X and if so how > painful was it? > > > > The reason I am a asking is that I have a old NH2.1 project that I have > used the NHibernate.Linq.dll extensively. I am pretty sure that I can’t use > the old 2.1 Linq provider with NH3.2 Is this a correct assumption? > > If this is an correct assumption then I am hoping I just need to do a find > and replace of session.Linq to session.Query within all my repositories. > Has anyone done such a thing? > > > > I do have several hundred unit tests that don’t test the actual database > rather than the controller logic. However I do have **mostly** all pages > retrieving data using selenium but not so hot on the saving side. So my > second question is should I write more integration covering tests that > saves data to the database OR create a sql lite testing suite? > > > > All help/advice/comments are very much appreciated. > > > > Richard > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/gmnrQgxBUWUJ. 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.
