Questions tagged [nhibernate-futures]
6 questions
3
votes
1 answer
Fetching ManyToOne using NHibernate-Futures
I have a class graph which is similar to the one below.
I am using this example since it is more simpler than explaining the domain that I am working on.
public class Cheque {
public FinanceAccount Account {get;set;}
public Customer…

frictionlesspulley
- 11,070
- 14
- 66
- 115
2
votes
1 answer
NHibernate Futures returns Proxy sometimes, Entity others
I have a database fetch that handles a full object graph using multiple future queries. It looks something like this (class names have been changed to protect the innocent):
Foo foo;
var fooFuture = Session.QueryOver()
…

kdawg
- 2,019
- 21
- 31
1
vote
1 answer
Nhibernate - The same in parameter value will be applied with different name to different future queries
We are trying to eager load some data using Nhibernate future queries. As you already know while calling ToList(), all the future query that we have before will get executed in one transaction.
var selectedPhysicianIds = new List {1, 2};
var…

Ramki
- 158
- 6
1
vote
2 answers
Using FetchMany and Select in Linq to NHibernate query
I have Personne (person) entity with sub collections Polices and Procedures. I want to load a batch of Personnes with those collections loaded as well, using the power of Future queries. But! I was asked not to duplicate the columns of Personne in…

user1174017
- 67
- 8
0
votes
1 answer
NHibernate - does LINQ Where() after Future() trigger query?
I have to implement a model based access security on an existing system, to prevent users from loading/changing data from other users. So I created a couple of interfaces for that purpose and made model classes implement them.
I have a base…

ZolaKt
- 4,683
- 8
- 43
- 66
0
votes
1 answer
Nhibernate Queryover multi level model
lets say i have this database schema
[User] -1----n-> [Resource] -1----n-> [ResourceVersion]
and i want to select this using Nhibernate in one database roundtrip for user by username but select resourceVersions with future doesn work. How to…

LightCZ
- 695
- 1
- 8
- 20