当我EntityFramework.Extended在我的RiceBuySellProvider项目中使用时,我在我的main project:
The type or namespace name I remove the 'RiceBuySellProvider' could not be found (are you missing a using directive or an assembly reference?)
从MainProject图像

但是当我 从我的中删除.FutureFirstOrDefault()时,没有发现错误。为什么?EntityFramework.ExtendedRiceBuySellProvider
更新
当我使用.FutureFirstOrDefault()这将是错误的原因。
public static ProductEntity GetProduct(string productNo)
{
using (var con = new RiceBuySellEntities(ConnectionStr))
return CompiledQueries.GetProCatTypeUnit.Invoke(con, productNo).FutureFirstOrDefault();
}