oops, when i was redacting that I forgot to change the code ..
using (var session =
MyDataContext.Current.SessionManager.OpenSession())
{
using (var trans = session.BeginTransaction())
{
var cust =
session.CreateCriteria<Customer>()
.Add(nhc.Expression.Eq(rValue.NameOf(x =>
x.BillingInstanceID), customerBillingInstanceID))
.SetFetchMode(rValue.NameOf(x =>
x.Children), FetchMode.Eager)
.UniqueResult<Customer>();
// var cust =
session.Query<Customer>()
// .Where(x => x.BillingInstanceID ==
customerBillingInstanceID)
// .Single();
rValue = cust;
}
}
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.