I need to know how to map in the fluent API the following item
public class ImportacaoHeader
{
public string IdImportacao { get; set; }
public DateTime dataInicio { get; set; }
}
public class ImportacaoLog
{
public string IdImportacao { get; set; }
public string CodigoCampo { get; set; }
}
The problem is as follows, ImportId in the ImportHeader table is key and ImportId is a key in ImportLog, since for each importheader I have several occurrences in ImportLog and the relationship between the two tables is the same key field in the two before of anything else I notice that I can not change the tables they already exist or I would have already done and solved,
how can I map this in fluent api, how would the syntax look, and what would I have to change in the classes above?