¡@

Home 

c# Programming Glossary: drinks

EntitySet System.InvalidOperationException - “the entity type is not part of the model for the current context”

http://stackoverflow.com/questions/13634819/entityset-system-invalidoperationexception-the-entity-type-is-not-part-of-the

var _db new MealsContext var m _db.Meals.ToList var d _db.Drinks.ToList return View Exception is thrown retrieving the Drinks.. return View Exception is thrown retrieving the Drinks collection The entity type Drink is not part of the model for.. DbSet Vegetable Vegetables get set public DbSet Drink Drinks get set My experience was in using a Model First methodology...