Home
Options

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; result.Dump(); }

Comments

Sign In or Register to comment.