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 -

php - Boolean search on database with 5 million rows, very slow -

css - Text drops down with smaller window -