0

プロジェクトでを使用する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();
}
4

1 に答える 1

1

インポートする名前空間を保持するアセンブリへの参照を追加する必要があります。

プロジェクト プロパティ > 参照

編集
Rice アセンブリが互換性のないフレームワークをターゲットにしているか、そのビット数 (x86 / x64) が一致していない可能性があります。

于 2013-02-06T03:20:01.847 に答える