/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IDaylyCreationStatus source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.ProcessedDay = source.ProcessedDay; this.LastModifyTimeStamp = source.LastModifyTimeStamp; this.ModifyTimeStamp = source.ModifyTimeStamp; }
/// <summary> /// This method copy's each database field which is in the <paramref name="includedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_TakeOnly(IDaylyCreationStatus source, params string[] includedColumns) { if (includedColumns.Contains(DaylyCreationsStatusTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(DaylyCreationsStatusTable.ProcessedDayCol)) this.ProcessedDay = source.ProcessedDay; if (includedColumns.Contains(DaylyCreationsStatusTable.LastModifyTimeStampCol)) this.LastModifyTimeStamp = source.LastModifyTimeStamp; if (includedColumns.Contains(DaylyCreationsStatusTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IDaylyCreationStatus target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.ProcessedDay = this.ProcessedDay; target.LastModifyTimeStamp = this.LastModifyTimeStamp; target.ModifyTimeStamp = this.ModifyTimeStamp; }