我有 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"
}
]
}
]
}
现在我想将国家数组重命名为 countryList 例如,它是一个数组