/// <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(IOldVideoFile source, params string[] includedColumns) { if (includedColumns.Contains(OldVideoFilesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(OldVideoFilesTable.VideoCol)) this.Video = source.Video; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IOldVideoFile source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Video = source.Video; }
/// <summary> /// This method copy's each database field which is not in the <paramref name="excludedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_Ignore(IOldVideoFile source, params string[] excludedColumns) { if (!excludedColumns.Contains(OldVideoFilesTable.IdCol)) this.Id = source.Id; if (!excludedColumns.Contains(OldVideoFilesTable.VideoCol)) this.Video = source.Video; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IOldVideoFile target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Video = this.Video; }