I have a simple Nhibernate Linq query that is returning more results than expected: var result = (from foo in session.Linq<Foo>()
I\'m trying order a Linq to NHibernate query by the sum of it\'s children. session.Linq&开发者_StackOverflow中文版lt;Parent>().OrderBy( p => p.Children.Sum( c => c.SomeNumber ) ).ToList()
I\'m trying to accomplish the following query (notice .StartsWith): return (from p in _session.Linq<Profile>()
I want to retrieve list of roles for a logged in user. Following is a code segment that reads user roles from the database.
I\'ve had a system up and running that used the Fluent NHibernate pre-release v0.0.1.0 along with NHibernate 2.1.0.4000 and NHibernate.Linq 1.0.0.0.
Foo has Title. Bar references Foo. I have a collection with Bars. I need a collection with Foo.Title. If i have 10 bars in collection, i\'ll call db 10 times.