This question seems to come up a bit and I\'ve yet to see a good answer. I have two classes with no foreign key and no real relationship other than a common field, in this case \"Title\".
Hi I\'m having a problem with getting a conditional query to work. I want all projects where project.Parent either is null or if it has a parent then it shouldn\'t be voided or closed.
I\'m using a generic repository that exposes an IQueryable<T> like this: public IQueryable<T> AllEntities
I\'m using NHibernate 3.0 with both the LINQ provider and QueryOver. Sometimes I want to eager load related data, and there comes the method \"Fetch\" to the rescue, both in LINQ and QueryOver. Now I
I\'m pretty new to LINQ (and NHibernate\'s LINQ provider) I have a query that joins 3 ta开发者_运维百科bles in a grandparent-parent-child using many-to-one mappings.
I have 2 objects like this public class Child { public virtual int ChildId { get; set; } } public class Parent
We\'re using LinqSpecs to create specifications for our NHibernate Linq queries and I havethe following query:
Producing software for customers, mostly using MS SQL but some Oracle, a decision was made to plunge into Nhibernate (and C#).
When I try to compile the following code using System; using System.Collections开发者_运维问答.Generic;
There appears to be mismatch betweeen the SQL generated by NHibernate and SQL expected by SQL2008 in the following case: