How can i return string type value form the linq query

May 10 2012 2:32 AM
hi all ,

i have a table with two columns i want to return the value based on the key passed its ok , i am expecting the string from that query but it return the iqueryable some thing like can bellow is the line i wrote for this can you any one solve this for me

  Dim showoutstock = From s In EasyShopEntites.SystemSettings Where s.SettingsKey = "showoutofstock" Select s.SettingsValue.FirstOrDefault()

i was created the enatity data model for my database

Thanks & Regards,
M.Koteswara Rao.


Answers (4)