Beispiel #1
0
 private XElement ToXElement(Friend friend)
 {
     var node =  new XElement("Friends",
                 new XElement("ContactId1", friend.ContactId1),
                 new XElement("ContactId2", friend.ContactId2)
         );
     return node;
 }
 partial void DeleteFriend(Friend instance);
 partial void UpdateFriend(Friend instance);
 partial void InsertFriend(Friend instance);
		private void detach_Friends1(Friend entity)
		{
			this.SendPropertyChanging();
			entity.Contact1 = null;
		}
		private void attach_Friends1(Friend entity)
		{
			this.SendPropertyChanging();
			entity.Contact1 = this;
		}