/// <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; }
/// <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; }
private void detach_IllinoisDeathIndexPost1915s(IllinoisDeathIndexPost1915 entity) { this.SendPropertyChanging(); entity.RaceIndex1 = null; }
partial void DeleteIllinoisDeathIndexPost1915(IllinoisDeathIndexPost1915 instance);
partial void InsertIllinoisDeathIndexPost1915(IllinoisDeathIndexPost1915 instance);
private void attach_IllinoisDeathIndexPost1915s(IllinoisDeathIndexPost1915 entity) { this.SendPropertyChanging(); entity.GenderIndex1 = this; }