linq-to-nhibernate
Why does .Fetch() throws an null reference exception?
I have the following nhibernate linq query and it throws a null reference exception promotions = (from a in session.Query<Application>()[详细]
2023-03-17 05:20 分类:问答Map One to One Relationship at Run-Time
i\'m t开发者_StackOverflow中文版rying to upgrade an old CMS to use NHibernate and can\'t deter from the original database structure much. Here is the bit which is causing an issue. Say i have the foll[详细]
2023-03-17 03:43 分类:问答How to create a collection of Expression<Func<T, TRelated>>?
I have a repository with the following method: IEnumerable<T> FindAll<TRelated>(Specification<T> specification,[详细]
2023-03-16 06:04 分类:问答Nhibernate.linq Session.Query ignore not.lazyload
I\'m using SharpArch, i extended the Repository adding this methods : public IQueryable<T> FindAll(Expression<Func<T, bool>> expression)[详细]
2023-03-15 22:15 分类:问答Linq - NHibernate - get all classes where the dictionary property contains one of the items from my list
I\'m having a class foo like foo { Dictionary<string, Blubb> blubbDict {get;set;} Dictionary<Bar, string> barDict {get;set;}[详细]
2023-03-15 09:49 分类:问答NHibernate & LINQ: Using Fetch() with custom ToPagedList method
I have a problem with using the nHibernate Fetch() (or FetchMany()) method with my paging method which uses Futures to get the information it needs. And I\'m not sure how to fix it but I know exactly[详细]
2023-03-12 10:42 分类:问答Extending LINQ to Nhibernate provider, in combination with Dynamic LINQ problem
I\'m using NHibernate 3.1.0 and I\'m trying to extend the LINQ provider by using BaseHqlGeneratorForMethod and extending the DefaultLinqToHqlGeneratorsRegistry as explained in Fabio\'s post.[详细]
2023-03-11 20:01 分类:问答NHibernate Linq Query is 3x slower than HQL
I 开发者_如何学JAVAhave a simple test that runs a query 5000 times. The linq version of the query takes over 3 times the HQL and the cached Linq version is significantly slower than the cached version[详细]
2023-03-11 15:55 分类:问答Eager loading problem
I\'ve a problem with this linq to nhibernate query var listeShopping = (from cart in session.Query<Cart>()[详细]
2023-03-10 18:11 分类:问答Why do these two NHibernate queries produce different results?
This is for a M:N relationship, with the collection being mapped in NHibernate as a Set. The criteria query we were using previously \"worked\" but it did not populate the Skills collection properly,[详细]
2023-03-10 05:27 分类:问答