コード例 #1
0
ファイル: Person.cs プロジェクト: tralivali1234/LinqToSQL2
 /// <summary>Detaches this instance from the entity specified so it's no longer an associated entity</summary>
 /// <param name="entity">The related entity to detach from</param>
 private void Detach_PersonPhones(PersonPhone entity)
 {
     this.SendPropertyChanging("PersonPhones");
     entity.Person = null;
 }
コード例 #2
0
 /// <summary>Attaches this instance to the entity specified as an associated entity</summary>
 /// <param name="entity">The related entity to attach to</param>
 private void Attach_PersonPhones(PersonPhone entity)
 {
     this.SendPropertyChanging("PersonPhones");
     entity.PhoneNumberType = this;
 }
コード例 #3
0
		/// <summary>Detaches this instance from the entity specified so it's no longer an associated entity</summary>
		/// <param name="entity">The related entity to detach from</param>
		private void Detach_PersonPhones(PersonPhone entity)
		{
			this.SendPropertyChanging("PersonPhones");
			entity.PhoneNumberType = null;
		}
コード例 #4
0
ファイル: Person.cs プロジェクト: modulexcite/LinqToSQL2
		/// <summary>Attaches this instance to the entity specified as an associated entity</summary>
		/// <param name="entity">The related entity to attach to</param>
		private void Attach_PersonPhones(PersonPhone entity)
		{
			this.SendPropertyChanging("PersonPhones");
			entity.Person = this;
		}