Skip to content

Value Objects com Entityframework #37

Discussion options

You must be logged in to vote

Entendi que isso acontece por estar usando o Flunt, o meu VO Email herda de Notifiable, vi esse link #andrebaltieri/Flunt#23

Para resolver adicionei as linhas no meu contexto (OnModelCreating)

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
   modelBuilder.Ignore<Notifiable<Notification>>();
   modelBuilder.Ignore<Notification>();     
   modelBuilder.Owned<Email>();
    ....
}

Foi difícil achar kkk, Balta seria legal colocar uma observação nos cursos e também nos posts do Blog:
ef-core-value-objects
flunt

Valeu abraços

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
1 participant