1
I have the class
public class Email
{
public string Endereco { get; }
public string NomeExibicao{ get; }
}
I am trying to map in EF Core using the following code
builder.Property(e => e.Email.Endereco)
.HasColumnName("EmailUsuario");
When I try to run the update the message appears :
The Expression 'e => e.email.Endereco' is not a Valid Property Expression. The Expression should represent a Property access: ’t => t.Myproperty'. Parameter name: propertyAccessExpression
In EF 6 it worked well.
Other mappings of the same Entity are working.
Share the code you update.
– Gabriel Coletta