コード例 #1
0
        /// <summary>
        /// Create a copy of a pre-1916 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 IllinoisDeathIndexPre1916 CreatePre1916(IDeathRecord drSource)
        {
            if (drSource.DeathDate.Year > 1915)
                throw new ArgumentException("Death date \"" + drSource.DeathDate.ToShortDateString() + "\" is not pre-1916");

            IllinoisDeathIndexPre1916 drNew = new IllinoisDeathIndexPre1916();
            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
 partial void DeleteIllinoisDeathIndexPre1916(IllinoisDeathIndexPre1916 instance);
コード例 #4
0
 partial void UpdateIllinoisDeathIndexPre1916(IllinoisDeathIndexPre1916 instance);
コード例 #5
0
 partial void InsertIllinoisDeathIndexPre1916(IllinoisDeathIndexPre1916 instance);
コード例 #6
0
		private void detach_IllinoisDeathIndexPre1916s(IllinoisDeathIndexPre1916 entity)
		{
			this.SendPropertyChanging();
			entity.GenderIndex1 = null;
		}