Skip to content

Dúvida: Entity Framework, não usa nome do tipo no Dbset #22

Answered by andrebaltieri
dharuanluigi asked this question in Q&A
Discussion options

You must be logged in to vote

No método OnModelCreating você está usando um arquivo de mapeamento externo, por isso trocar o nome não adianta... No caso do Table((XPTO) essa anotação sobrescreve o nome.

Sempre que trocar o nome nos mapeamentos, tem que trocar nas tabelas do banco, você pode fazer isto gerando uma nova migração.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrebaltieri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants