asp.net mvc - LINQ where clause not returning results -
result set returns empty , i'm getting error 'enumeration yielded no results' when use clause(linq) . problem?
public class stores { [key, databasegenerated(databasegeneratedoption.identity)] public int storeid { get; set; } public string storename { get; set; } public string address { get; set; } public string telephone { get; set; } public int townid { get; set; } } public dbset<stores> store { get; set; } var storelist = n in db.store n.townid == 10 select n;
Comments
Post a Comment