linq-to-nhibernate
How can I mock or similarly inject a replacement for the query extension method applied to an NHibernate Session
I am trying to mo开发者_如何学运维ck out or similar the Query extension method applied to an nhibernate-3 session. Similar to the following...[详细]
2023-01-25 09:18 分类:问答NHibernate: How to add a List<Product> that i created manually to Nhibernate?
I have created a list of products - i.e. List manually in code. Is it possible with nhibernate to send along a List of Product and have it automatically add the details.[详细]
2023-01-24 07:00 分类:问答strange nhibernate + linq + mysql exception
I\'m hitting a strange error when running a query in nhibernate using linq. If I run the query in directly in mysql, everything works. If I rerun the linq query, I get no error, but only the id field[详细]
2023-01-23 11:10 分类:问答LINQ to NHibernate and let keyword
Is this possible to use let keyword with nhibernate linq? I wrote var posts = from post in postsRepository.GetPosts(name)[详细]
2023-01-22 20:55 分类:问答How do I express this LINQ query using the NHibernate ICriteria API?
My current project is using NHibernate 3.0b1 and the NHibernate.Linq.Query<T>() API. I\'m pretty fluent in LINQ, but I have absolutely no experience with HQL or the ICriteria API. One of my quer[详细]
2023-01-22 08:52 分类:问答Linq2NHibernate - Only Left Joins?
Really quick question.. Does Linq2NHibernate always create a left join to retrieve relationships? 开发者_如何学CIs there a way that I can get an inner one instead?[详细]
2023-01-20 21:38 分类:问答NHibernate LINQ throws "The binary operator Equal is not defined for the types 'System.Collections.Generic.IList`1[System.Int32]' and 'System.Int32'"
The following LINQ to NHibernate (using NHibernate 3.0) results in a System.InvalidOperationException being th开发者_如何学运维rown with the message \"The binary operator Equal is not defined for the[详细]
2023-01-20 18:10 分类:问答Getting an index was out of range exception with NHibernate
I\'m currently building a web application with MVC and NHibernate. Now when i want to get information out of the database I get an index was out of range exception.[详细]
2023-01-20 16:01 分类:问答Linq queries on dB and using custom Comparers
Whats the use of using custom comparers in Linq queries? Are they beneficial or are they just an overload on the server.[详细]
2023-01-20 15:49 分类:问答Why Skip and Take does not work when passing through a method?
Suppose following codes: IEnumerable<MyClass> MakeQuery() { var query = from m in session.Linq<MyClass>()[详细]
2023-01-20 15:01 分类:问答