示例#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(IWordUpRoot source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.LangName = source.LangName;
			this.Beschreibung = source.Beschreibung;
			this.DefaultRootPathForMaterial = source.DefaultRootPathForMaterial;
			this.DefaultFileNameModifier = source.DefaultFileNameModifier;
			this.ActuallSince = source.ActuallSince;
			this.LastUpdateToken = source.LastUpdateToken;
		}
示例#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(IWordUpRoot source, params string[] includedColumns)
		{
			if (includedColumns.Contains(WordUpRootsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(WordUpRootsTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(WordUpRootsTable.LangNameCol)) this.LangName = source.LangName;
			if (includedColumns.Contains(WordUpRootsTable.BeschreibungCol)) this.Beschreibung = source.Beschreibung;
			if (includedColumns.Contains(WordUpRootsTable.DefaultRootPathForMaterialCol)) this.DefaultRootPathForMaterial = source.DefaultRootPathForMaterial;
			if (includedColumns.Contains(WordUpRootsTable.DefaultFileNameModifierCol)) this.DefaultFileNameModifier = source.DefaultFileNameModifier;
			if (includedColumns.Contains(WordUpRootsTable.ActuallSinceCol)) this.ActuallSince = source.ActuallSince;
			if (includedColumns.Contains(WordUpRootsTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
示例#3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IWordUpRoot target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.LangName = this.LangName;
			target.Beschreibung = this.Beschreibung;
			target.DefaultRootPathForMaterial = this.DefaultRootPathForMaterial;
			target.DefaultFileNameModifier = this.DefaultFileNameModifier;
			target.ActuallSince = this.ActuallSince;
			target.LastUpdateToken = this.LastUpdateToken;
		}