Namespace issue with expression vs using DbContext?

edited August 2016
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;
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!