Hi David,
I suspect it's the call to GetTypeBs() ... this needs to be the name of the
property (association) defined in the mapping. (I'm not sure how fluentnh
determines this from the mapping example you've supplied.)
.CreateCriteria<TypeA>(a => a.GetTypeBs())
should probably be something like
.CreateCriteria<TypeA>(a => a.BsCollectionProperty)
The collection needs to be publicly exposed to use the extensions, otherwise
you'd need to use regular ICriteria for the .CreateCriteria (using strings).
(And remember you can expose it as IEnumerable is you want to make it
readonly.)
Regards,
Richard
--------------------------------------------------
From: "David Campbell" <
david.d....@gmail.com>
Sent: Monday, September 14, 2009 7:23 PM
To: "NhLambdaExtensionsUsers" <
nhlambdaext...@googlegroups.com>
Subject: Exception: Unrecognized method call in expression