I am using Microsoft Entity Framework with the first code to manage my data (with MySQL). I defined a POCO object, however, when I try to add data, it says that users do not exist. I looked in the database and created the User not Users table. How can i fix this? It drives me crazy!
Thank!
public class User
{
[Key,Required]
public int UserId { get; set; }
[StringLength(20), Required]
public string UserName { get; set; }
[StringLength(30), Required]
public string Password { get; set; }
[StringLength(100), Required]
public string EmailAddress { get; set; }
[Required]
public DateTime CreateDate { get; set; }
[Required]
public bool IsActive { get; set; }
}
source
share