Take the 2-minute tour ×  I am using Entity Framwwork and Code
First and getting really confused. I have this class:  public
class Blocks     [Display(Name = "ID"),Required(ErrorMessage =
"ID is required")]     public int BlockId  { get;set; }
[Display(Name = "Blocked By"),Required(ErrorMessage = "Blocked
By is required")]     public int ProfileId  { get;set; }
[Display(Name = "Blocked"),Required(ErrorMessage = "Blocked is
required")]     public int ProfileBlockedId  { get;set; }
[Display(Name = "Date Blocked"),Required(ErrorMessage = "Date
Blocked is required")]     public DateTime BlockDateTime  {
get;set; }      [Display(Name = "Block Reason")] public string
BlockReason  { get;set; }      public virtual Profiles Profile {
get; set; }     public virtual Profiles ProfileBlocked { get;
set; }  The profile class is more or less the same and that adds
fine and has the correct SQL, but when I run /Blocks I get this
error:  MySql.Data.MySqlClient.MySqlException (0x80004005):
Unknown column 'Extent1