nhibernate - NHibrenate Could Not Load Type -
nhibernate - NHibrenate Could Not Load Type -
i'm getting unusual behavior linq nhibernate. can retrieve objects want , can add together clauses.
but in specific case next exception:
could not load type x.foo.bar.bars. possible cause: assembly not loaded or not specified.
x.foo.bar.bars
part of piece of lambda look in clause.
where bars collection of objects. collection filled when query without clause.
query.where(x => x.foo.bar.bars.any(b => b.name == "barname"));
the stacktrace this:
at nhibernate.util.reflecthelper.classforfullname(string classfullname)
and yes, mapping files embedded resources.
part of mapping:
<bag name ="bars" inverse="true" lazy="false" cascade="none" optimistic-lock="false" access="framework.nhibernate.properties.entitycollectionaccessor, assembly"> <key column="bagid" /> <one-to-many class="bar"/> </bag>
access="bars, assembly"
looks wrong. don't want define access strategy implemented in class bars
, you?
nhibernate linq-to-nhibernate
Comments
Post a Comment