Assuming I have the following class:
public class Item
{
[Key]
public int itemID {get; set;}
public int typeID {get; set;}
}
I understand that finding a record in database usually is by the primary key, e.g.
Item item = db.Item.Find(id);
How do I find the record by another column? i.e. find all the records where typeID = 1?