Код: Выделить всё
public class Expense
{
public Guid Id { get; set; }
public ICollection States { get; } = [];
public Guid LatestStateId { get; set; }
public ExpenseState LatestState { get; set; }
}
public class ExpenseState
{
public Guid Id { get; set; }
public Guid ExpenseId { get; set; }
public string State { get; set; }
}
< /code>
StatesПодробнее здесь: https://stackoverflow.com/questions/796 ... same-class
Мобильная версия