vb.net - LinqPad Error: Lambda expression cannot be converted to 'String' because 'String' is not a delegate type -
when using linqpad following error:
lambda expression cannot converted 'string' because 'string' not delegate type.
when copying in following code.
any idea wrong. using entity framework , have linqpad configured read off entity framework object.
can use linqpad create ef queries or strictly linq?
dim db  planitentities = new planitentities  dim projects = p in db.projects.include(function(p) p.availablespacetypes) _                                     .include(function(p) p.disadvantagedegree) _                                     .include(function(p) p.fundingsources) _                                     .include(function(p) p.partnerapprovalstatuscode) _                                     .include(function(p) p.physicalconstrainttypes) _                                     .include(function(p) p.policyconstrainttypes) _                                     .include(function(p) p.profile) _                                     .include(function(p) p.program) _                                     .include(function(p) p.program1) _                                     .include(function(p) p.recommendation) _                                     .include(function(p) p.requesttype) _                                     .include(function(p) p.schematicdesignsource) _                                     .include(function(p) p.recommendation1) _                                     .include(function(p) p.statuscode) _               (p.deleteflag <> true) _               select p 
the problem appears 1 or more of properties of object "p" not string. however, misunderstanding .include does. eager-loads whichever related tables specify. if had:
dim projects = p in db.projects.include("managers") it eager-load of related records "managers" table each row in "projects" table when query executed. somehow, don't think trying accomplish code posted.
Comments
Post a Comment