LinQ Simple Select
var q = from image in db.ImageDatas // The db name is Always in Plural
select image.Name + " " + image.Caption;
foreach (var i in q)
{
Response.Write(i+"
");
");
}
LinQ Select With Where Clause
var q = from image in db.ImageDatas
where (image.Title=="test")
select image.Name + " " + image.Caption;
foreach (var i in q)
{
Response.Write(i+"
");
");
}
Thanks,
Nitin Sharma