私はそれらの関係がこのようなものである3つのエンティティを持っています:
public class Student
{
public int Id { get; set; }
public string FirstName { get; set; }
public string Description { get; set; }
public IList<StuInfo> StudentInfos { get; set; }
}
public class StuInfo
{
public int Id { get; set; }
public string BirthCityName { get; set; }
public string NationalNo { get; set; }
public IList<Country> Countries { get; set; }
}
public class Country
{
public int CountryId { get; set; }
public string CountryName { get; set; }
}
raven db データでは、次のスキーマを確認できます。
{
"Name": "Hassan",
"Description": "mike smith",
"StudentInfos": [
{
"Id": 1,
"BirthCityName": "berlin",
"NationalNo": "0064501256",
"Countries": [
{
"CountryId": 1,
"CountryName": "germany"
},
{
"CountryId": 2,
"CountryName": "Ghana"
}
]
}
]
}
たとえば、countries配列の名前をcountryListに変更したいのですが、これは次の配列です