When I use the EntityFramework.Extended
in my RiceBuySellProvider
project, I got this error in my 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?)
From MainProject
Image
But when I remove the .FutureFirstOrDefault()
of EntityFramework.Extended
from my RiceBuySellProvider
and no errors found. Why?
UPDATE
When I use the .FutureFirstOrDefault()
this will be the cause of the error.
public static ProductEntity GetProduct(string productNo)
{
using (var con = new RiceBuySellEntities(ConnectionStr))
return CompiledQueries.GetProCatTypeUnit.Invoke(con, productNo).FutureFirstOrDefault();
}