Namespace issue with expression vs using DbContext?

Options
Phil_Boyd
edited August 2016 in General
the following query generates an error in LinqPad:
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