Я пытаюсь перенести модели, но получаю ошибку как
Невозможно определить отношение, представленное свойством навигации "из-за ограничений отношения.
Я не знаю, как настроить это отношение
public class Currency
{
public int Id { get; set; }
public string Name { get; set; }
public string Code { get; set; }
public string Symbol { get; set; }
public string Notes { get; set; }
public ICollection<ExchangeRate> ExchangeRates { get; set; }
public virtual ICollection<ExchangeRate> QuotedExchangeRates { get; set; }
}
public class ExchangeRate
{
public int Id { get; set; }
public DateTime Date { get; set; }
public decimal Rate { get; set; }
public DateTime UpdatedDate { get; set; }
public Currency BaseCurrency { get; set; }
public Currency QuoteCurrency { get; set; }
}
Просмотр сведений:
