示例#1
0
文件: Person.cs 项目: Galigator/db4o
 public void RemoveOwnerShipOf(Dog dog)
 {
     owns.Remove(dog);
     dog.Owner = null;
 }
示例#2
0
文件: Person.cs 项目: Galigator/db4o
 // The add and remove method ensure that the relations is always consistent
 public void AddOwnerShipOf(Dog dog)
 {
     owns.Add(dog);
     dog.Owner = this;
 }