1

私はそれらの関係がこのようなものである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に変更したいのですが、これは次の配列です

4

3 に答える 3

0

この機能を使用したい: http://ayende.com/blog/157185/awesome-ravendb-feature-of-the-day-evil-patching

Studio から実行できることに注意してください: http://blog.hibernatingrhinos.com/12705/new-option-in-the-ravendb-studiondash-patching

于 2012-11-11T09:19:23.990 に答える
0

http://ayende.com/blog/66563/ravendb-migrations-rolling-updates

ayende のサイトで投稿を見つけましたが、コードでの使用方法がわかりません。また、このシナリオで機能するかどうかもわかりません。

于 2012-11-11T05:44:00.523 に答える