Tell me what to do for this table:

public class UnitMeasurementModel { public Guid Id { get; set; } public string Name { get; set; } public UnitFamilyModel Family { get; set; } public UnitMeasurementModel Lowwer { get; set; } public double LowwerCoefficient { get; set; } public UnitMeasurementModel Higger { get; set; } public double HiggerCoefficient { get; set; } } 

Swears at:

Unable to determine between the types of DataLayer.Models.UnitMeasurementModel and DataLayer.Models.UnitMeasurementModel. Must be explicitly configured with either the relationship fluent API or data annotations.

  • Well, what did he ask to do? - Andrew NOP

1 answer 1

Try to read here and here . There is a solution similar to your problem.