Sto utilizzando Microsoft Entity Framework con il codice che prima gestisce i miei dati (con MySQL). Ho definito un oggetto POCO, tuttavia, quando provo ad aggiungere dati, dice che la tabella Utenti non esiste. Ho guardato nel DB e ha creato la tabella User not Users. Come posso rimediare a questo? Mi sta facendo impazzire!Codice quadro entità Prime tabelle plurali di MySql
Grazie!
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; }
}
ciò connettore e la versione stai usando? questo sembra arrivare a quel livello .. potrebbe essere sbagliato anche se – gordatron
Hey mysql connector net 6.3.7 –
Anche se aggiungo [Table ("User")] sopra la classit funziona ma id piuttosto che non lo devo fare –