1
I have a class where I need to have two different relationships with the same table.
public class Usuario
{
public int Naturalidade {set;get;}
public int CidadeEndereco {set;get;
}
public class Cidade
{
public int Id {set;get;}
public string Nome {set;get;
}
How do I do this relationship? It can be using Fluent API or Data Annotation?
Here is your answer https://msdn.microsoft.com/en-us/data/jj713564.aspx
– Guto