Ejemplo 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(IZielGruppe source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.ZielGruppeColumn = source.ZielGruppeColumn;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Ejemplo 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(IZielGruppe source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ZielGruppenTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ZielGruppenTable.ZielGruppeColumnCol)) this.ZielGruppeColumn = source.ZielGruppeColumn;
			if (includedColumns.Contains(ZielGruppenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Ejemplo n.º 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IZielGruppe target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.ZielGruppeColumn = this.ZielGruppeColumn;
			target.LastUpdateToken = this.LastUpdateToken;
		}