/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMPicture source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.TypId = source.TypId; this.Description = source.Description; this.PictureSourceId = source.PictureSourceId; this.PlayerFileNameReference = source.PlayerFileNameReference; this.LastWriteFileTime = source.LastWriteFileTime; this.HashCode = source.HashCode; this.ValueThumb = source.ValueThumb; this.Value = source.Value; 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(IMMPicture source, params string[] includedColumns) { if (includedColumns.Contains(MMPicturesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMPicturesTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMPicturesTable.TypIdCol)) this.TypId = source.TypId; if (includedColumns.Contains(MMPicturesTable.DescriptionCol)) this.Description = source.Description; if (includedColumns.Contains(MMPicturesTable.PictureSourceIdCol)) this.PictureSourceId = source.PictureSourceId; if (includedColumns.Contains(MMPicturesTable.PlayerFileNameReferenceCol)) this.PlayerFileNameReference = source.PlayerFileNameReference; if (includedColumns.Contains(MMPicturesTable.LastWriteFileTimeCol)) this.LastWriteFileTime = source.LastWriteFileTime; if (includedColumns.Contains(MMPicturesTable.HashCodeCol)) this.HashCode = source.HashCode; if (includedColumns.Contains(MMPicturesTable.ValueThumbCol)) this.ValueThumb = source.ValueThumb; if (includedColumns.Contains(MMPicturesTable.ValueCol)) this.Value = source.Value; if (includedColumns.Contains(MMPicturesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMPicture target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.TypId = this.TypId; target.Description = this.Description; target.PictureSourceId = this.PictureSourceId; target.PlayerFileNameReference = this.PlayerFileNameReference; target.LastWriteFileTime = this.LastWriteFileTime; target.HashCode = this.HashCode; target.ValueThumb = this.ValueThumb; target.Value = this.Value; target.LastUpdateToken = this.LastUpdateToken; }