コード例 #1
0
 private Relationship CreateMarriage(Person george, Person martha)
 {
     Relationship relationship = new Relationship();
     relationship.SetId("DDD-DDDD");
     relationship.SetPerson1(new ResourceReference("#" + george.Id));
     relationship.SetPerson2(new ResourceReference("#" + martha.Id));
     Fact marriage = new Fact();
     marriage.SetDate(new DateInfo());
     marriage.Date.SetOriginal("January 6, 1759");
     marriage.Date.SetFormal("+01-06-1759");
     marriage.SetPlace(new PlaceReference());
     marriage.Place.SetOriginal("White House Plantation");
     relationship.SetFact(marriage);
     return relationship;
 }