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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -