/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IErrornousEntry source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Reason = source.Reason; this.ProblematicId = source.ProblematicId; this.NameIdInTable = source.NameIdInTable; this.LastModifyFromDataBase = source.LastModifyFromDataBase; this.LastModifyFromFile = source.LastModifyFromFile; this.FileFoundInDirectory = source.FileFoundInDirectory; this.TableWhereProblemArise = source.TableWhereProblemArise; this.TableWhereWrongIdFound = source.TableWhereWrongIdFound; this.HttpToThumb = source.HttpToThumb; this.LastUpdateToken = source.LastUpdateToken; }
/// <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(IErrornousEntry source, params string[] includedColumns) { if (includedColumns.Contains(ErrornousEntriesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ErrornousEntriesTable.ReasonCol)) this.Reason = source.Reason; if (includedColumns.Contains(ErrornousEntriesTable.ProblematicIdCol)) this.ProblematicId = source.ProblematicId; if (includedColumns.Contains(ErrornousEntriesTable.NameIdInTableCol)) this.NameIdInTable = source.NameIdInTable; if (includedColumns.Contains(ErrornousEntriesTable.LastModifyFromDataBaseCol)) this.LastModifyFromDataBase = source.LastModifyFromDataBase; if (includedColumns.Contains(ErrornousEntriesTable.LastModifyFromFileCol)) this.LastModifyFromFile = source.LastModifyFromFile; if (includedColumns.Contains(ErrornousEntriesTable.FileFoundInDirectoryCol)) this.FileFoundInDirectory = source.FileFoundInDirectory; if (includedColumns.Contains(ErrornousEntriesTable.TableWhereProblemAriseCol)) this.TableWhereProblemArise = source.TableWhereProblemArise; if (includedColumns.Contains(ErrornousEntriesTable.TableWhereWrongIdFoundCol)) this.TableWhereWrongIdFound = source.TableWhereWrongIdFound; if (includedColumns.Contains(ErrornousEntriesTable.HttpToThumbCol)) this.HttpToThumb = source.HttpToThumb; if (includedColumns.Contains(ErrornousEntriesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IErrornousEntry target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Reason = this.Reason; target.ProblematicId = this.ProblematicId; target.NameIdInTable = this.NameIdInTable; target.LastModifyFromDataBase = this.LastModifyFromDataBase; target.LastModifyFromFile = this.LastModifyFromFile; target.FileFoundInDirectory = this.FileFoundInDirectory; target.TableWhereProblemArise = this.TableWhereProblemArise; target.TableWhereWrongIdFound = this.TableWhereWrongIdFound; target.HttpToThumb = this.HttpToThumb; target.LastUpdateToken = this.LastUpdateToken; }