Hi, in looking at this further, it seems that you can actually use criteria in NH3 the same way as you would in NH2.1. And as such the RS can be used fully in with NH3. It might be nice to build the QueryOver stuff into it, in fact it certainly would because QueryOver is strongly typed and criteria uses strings, but it is not necessary. Furthermore, I don't believe you can use linq with the QueryOver stuff but you can with the ICriteria stuff. It's a tough call. I think if someone can show me that you can use linq with the queryover I would build an AuthorizationRepository that used it. But unless you can some how turn an IQueryable<T> into a QueryOver<T,T> I don't see how. R
On May 12, 4:33 pm, Raif <[email protected]> wrote: > hrumph. > that sucks. > Essentially with out these features RS days are numbered. > so > 1) what is Oren doing? I presume he's still using it and I presume > he's using NH3 > 2) It would seem that the changes to make it compatible with NH3 are/ > would be to change any method that returns an ICriteria to instead > return an IQueryOver<T,T>. This I believe would be the private > GetPermissionQueryInternal methods. they would take the same args but > use the queryover to build up the IQueryOver<T,T>. > Does this sound right or would it involve a lot more? > Thanks, > Raif > > On May 12, 3:14 pm, Nathan Stott <[email protected]> wrote: > > > > > > > > > On Thu, May 12, 2011 at 3:03 PM, Raif <[email protected]> wrote: > > > So I guess my questions are > > > 1) Can I use RS and NH3 and linq? > > > No > > > > 2) Can I use RS and NH3 and Criteria? > > > No > > > > 3) Can I even use RS and NH3 or does it need to be refactored to use > > > NH3. > > > Needs to be refacoted to use NH3. It currently uses NH 2.1.0.4000 > > > > 4) Should I look at extending the RSRepository to use linq or will > > > that kill all the level 2 cache stuff and/or is that a huge > > > undertaking. > > > If you are interested in doing this refactor, it would be much > > welcomed by RS users and may even promote a renaissance of RS usage. > > It will not be trivial -- 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.
