{"illegal syntax near collection: Size [select distinct p from Model.Product as p left outer join fetch p.ListProductItems as b left outer join fetch p.FingerStyel where p.ProductStyle =:Style and b.Color =:Color and b.Size =:Size ]"}
Nhibernate查询的时候出现了如上错误。其实此查询也就是过滤字表和自己表中字段,等到数据。
有问题, 就是你的数据库字段对不应你的xml里面定义的
illegal syntax near collection: Size