/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMPictureSource source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.NameGroupId = source.NameGroupId; 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(IMMPictureSource source, params string[] includedColumns) { if (includedColumns.Contains(MMPictureSourcesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMPictureSourcesTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(MMPictureSourcesTable.NameGroupIdCol)) this.NameGroupId = source.NameGroupId; if (includedColumns.Contains(MMPictureSourcesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMPictureSource target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.NameGroupId = this.NameGroupId; target.LastUpdateToken = this.LastUpdateToken; }