我正在尝试过滤掉映射中的结果。但是我试图从 int 字段中过滤掉空值。nHiberate 抛出异常。如果我使用数字,它会起作用。这是代码:
table("products");
Id(x => x.productID);
Map(x => x.canOverwrite);
Map(x => x.format);
Map(x => x.freeShipping);
Map(x => x.height);
Map(x => x.lastUpdated);
Map(x => x.length);
Map(x => x.releaseDate);
Map(x => x.removeDate);
HasMany(x => x.ProductContributors).Where(c => c.sortID != null).KeyColumn("productID").Not.LazyLoad();
关于如何使它工作的任何建议?