Does anybody know how to fix this error:
System.Data.Edm.EdmEntityType: : EntityType 'BlogTags' has no key defined. Define the key for this EntityType.
Using MVC 3 with Entity Framework.
The error tells you all you need to know: "Define the key for this EntityType".
In EF all entities must have primary keys of some type.
Just put [Key] on top of your property (which is presenting primary key). Something like this,
[Key]
public int BlogTypeId { get; set; }