Hi,
I updated below code
public class Customers
{
public int Id { get; set; }
public string Name { get; set; }
public string Country { get; set; }
public int Salary { get; set; }
public List<Employee> Employees { get; set; }
}
public class Employee
{
public int Id;
public string Name;
}
LogDataId oldvalue newvalue FieldName CreatedDate
1 0 1 Id 09/03/2022
2 0 JohnHammond Name 09/03/2022
3 0 United States Country 09/03/2022
4 0 2000 Salary 09/03/2022
5 0 1/2 Employees 09/03/2022
List<Employee> employees = new List<Employee>() {
new Employee(){Id=1,Name="Emp1"},
new Employee(){Id=2,Name="Emp1"}
};
Customers customers = new Customers { Employees=employees,Id = 1, Name = "John Hammond", Country = "United States", Salary = 50000 };