コード例 #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(IOrganisationZuTermin source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.Type = source.Type;
			this.OrganisationenTypId = source.OrganisationenTypId;
			this.OrganisationenId = source.OrganisationenId;
			this.TermineId = source.TermineId;
			this.WordUpId = source.WordUpId;
			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(IOrganisationZuTermin source, params string[] includedColumns)
		{
			if (includedColumns.Contains(OrganisationenZuTerminenTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.TypeCol)) this.Type = source.Type;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.OrganisationenTypIdCol)) this.OrganisationenTypId = source.OrganisationenTypId;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.OrganisationenIdCol)) this.OrganisationenId = source.OrganisationenId;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.TermineIdCol)) this.TermineId = source.TermineId;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.WordUpIdCol)) this.WordUpId = source.WordUpId;
			if (includedColumns.Contains(OrganisationenZuTerminenTable.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(IOrganisationZuTermin target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.Type = this.Type;
			target.OrganisationenTypId = this.OrganisationenTypId;
			target.OrganisationenId = this.OrganisationenId;
			target.TermineId = this.TermineId;
			target.WordUpId = this.WordUpId;
			target.LastUpdateToken = this.LastUpdateToken;
		}