linq-to-nhibernate
NHibernate CreateAlias - Joins on arbitrary columns
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\".[详细]
2023-02-07 12:28 分类:问答Linq conditional query on same table/object
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.[详细]
2023-02-07 11:53 分类:问答How do I wrap Linq2NHibernate's .Fetch and .ThenFetch inside my abstract repository?
I\'m using a generic repository that exposes an IQueryable<T> like this: public IQueryable<T> AllEntities[详细]
2023-02-07 02:37 分类:问答NHibernate 3. Alternatives to "ThenFetch" in QueryOver
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[详细]
2023-02-06 23:29 分类:问答NHibernate 3 LINQ provider creates non-ansi join syntax
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.[详细]
2023-02-06 21:39 分类:问答Linq to nhibernate - Where collection contains object with id
I have 2 objects like this public class Child { public virtual int ChildId { get; set; } } public class Parent[详细]
2023-02-05 07:44 分类:问答Using "from in" in a LinqSpecs specification?
We\'re using LinqSpecs to create specifications for our NHibernate Linq queries and I havethe following query:[详细]
2023-02-05 02:06 分类:问答How to delete data in DB efficiently using LinQ to NHibernate (one-shot-delete)
Producing software for customers, mostly using MS SQL but some Oracle, a decision was made to plunge into Nhibernate (and C#).[详细]
2023-02-04 21:07 分类:问答NHibernate - Where ISession.Query<T>() is located
When I try to compile the following code using System; using System.Collections开发者_运维问答.Generic;[详细]
2023-02-04 19:21 分类:问答Linq to Nhibernate with Contains and SubString does not work?
There appears to be mismatch betweeen the SQL generated by NHibernate and SQL expected by SQL2008 in the following case:[详细]
2023-02-03 18:03 分类:问答