Namespace issue with expression vs using DbContext?
the following query generates an error in LinqPad:
InvalidOperationException: The ModelDefinedFunctionAttribute for method ParseDouble must have namespaceName set to 'CodeFirstNamespace'.
Yet I can do the same thing as C# statements
from a in DcProductionAreas
let b = "24.00".ParseDouble()
select b
InvalidOperationException: The ModelDefinedFunctionAttribute for method ParseDouble must have namespaceName set to 'CodeFirstNamespace'.
Yet I can do the same thing as C# statements
using (var db = new DbEnvoyEFLib.DbEnvoyContext())
{
var result = from a in db.DcProductionAreas
let b = "24.00".ParseDouble()
select b;
result.Dump();
}
Comments