Exemplo 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(IProjektZuTermin source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.Type = source.Type;
			this.ProjektTypId = source.ProjektTypId;
			this.ProjekteId = source.ProjekteId;
			this.TermineId = source.TermineId;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Exemplo 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(IProjektZuTermin source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ProjekteZuTerminenTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ProjekteZuTerminenTable.TypeCol)) this.Type = source.Type;
			if (includedColumns.Contains(ProjekteZuTerminenTable.ProjektTypIdCol)) this.ProjektTypId = source.ProjektTypId;
			if (includedColumns.Contains(ProjekteZuTerminenTable.ProjekteIdCol)) this.ProjekteId = source.ProjekteId;
			if (includedColumns.Contains(ProjekteZuTerminenTable.TermineIdCol)) this.TermineId = source.TermineId;
			if (includedColumns.Contains(ProjekteZuTerminenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Exemplo n.º 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IProjektZuTermin target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.Type = this.Type;
			target.ProjektTypId = this.ProjektTypId;
			target.ProjekteId = this.ProjekteId;
			target.TermineId = this.TermineId;
			target.LastUpdateToken = this.LastUpdateToken;
		}