コード例 #1
0
        /// <summary>
        /// Create a copy of a post-1915 Illinois death record
        /// </summary>
        /// <param name="drSource">the death record to copy</param>
        /// <returns>an exact, but referentially distinct, copy of <paramref name="drSource"/></returns>
        public static IllinoisDeathIndexPost1915 CreatePost1915(IDeathRecord drSource)
        {
            if (drSource.DeathDate.Year < 1916)
                throw new ArgumentException("Death date \"" + drSource.DeathDate.ToShortDateString() + "\" is not pre-1916");

            IllinoisDeathIndexPost1915 drNew = new IllinoisDeathIndexPost1915();
            Initialize(drSource, drNew);
            return drNew;
        }
コード例 #2
0
 /// <summary>
 /// Create a copy of an existing Illinois death record
 /// </summary>
 /// <param name="drSource">the death record to copy</param>
 /// <returns>an exact, but referentially distinct, copy of <paramref name="drSource"/></returns>
 public static IDeathRecord Create(IDeathRecord drSource)
 {
     IDeathRecord drNew;
     if (drSource.DeathDate.Year < 1916)
         drNew = new IllinoisDeathIndexPre1916();
     else
         drNew = new IllinoisDeathIndexPost1915();
     Initialize(drSource, drNew);
     return drNew;
 }
コード例 #3
0
		private void detach_IllinoisDeathIndexPost1915s(IllinoisDeathIndexPost1915 entity)
		{
			this.SendPropertyChanging();
			entity.RaceIndex1 = null;
		}
コード例 #4
0
 partial void DeleteIllinoisDeathIndexPost1915(IllinoisDeathIndexPost1915 instance);
コード例 #5
0
 partial void InsertIllinoisDeathIndexPost1915(IllinoisDeathIndexPost1915 instance);
コード例 #6
0
		private void attach_IllinoisDeathIndexPost1915s(IllinoisDeathIndexPost1915 entity)
		{
			this.SendPropertyChanging();
			entity.GenderIndex1 = this;
		}