Linq to Sql First() Not work -


this :

dbmodal.sm_sys_globals.first(x => x.objectvalue.contains("to")) 

has error :

expression cannot contain lambda expressions 

use following instead

dbmodal.sm_sys_globals.where(x => x.objectvalue.contains("to")).first()


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -