Esempio n. 1
0
		///	<summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary>
		public void Copy_From(IExistingTag source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.Tag = source.Tag;
			this.OldTagging = source.OldTagging;
			this.DirectoryToStore = source.DirectoryToStore;
			this.SortOrder = source.SortOrder;
		}
Esempio n. 2
0
		///	<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(IExistingTag source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ExistingTagsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ExistingTagsTable.TagCol)) this.Tag = source.Tag;
			if (includedColumns.Contains(ExistingTagsTable.OldTaggingCol)) this.OldTagging = source.OldTagging;
			if (includedColumns.Contains(ExistingTagsTable.DirectoryToStoreCol)) this.DirectoryToStore = source.DirectoryToStore;
			if (includedColumns.Contains(ExistingTagsTable.SortOrderCol)) this.SortOrder = source.SortOrder;
		}
Esempio n. 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IExistingTag target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.Tag = this.Tag;
			target.OldTagging = this.OldTagging;
			target.DirectoryToStore = this.DirectoryToStore;
			target.SortOrder = this.SortOrder;
		}