コード例 #1
0
ファイル: Distanze.generated.cs プロジェクト: heinzsack/DEV
		///	<summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary>
		public void Copy_From(IDistanze source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.MaschineId = source.MaschineId;
			this.StationId = source.StationId;
			this.DistanzInMeter = source.DistanzInMeter;
			this.DistanzInSeconds = source.DistanzInSeconds;
			this.LastUpdateToken = source.LastUpdateToken;
		}
コード例 #2
0
ファイル: Distanze.generated.cs プロジェクト: heinzsack/DEV
		///	<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(IDistanze source, params string[] includedColumns)
		{
			if (includedColumns.Contains(DistanzenTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(DistanzenTable.MaschineIdCol)) this.MaschineId = source.MaschineId;
			if (includedColumns.Contains(DistanzenTable.StationIdCol)) this.StationId = source.StationId;
			if (includedColumns.Contains(DistanzenTable.DistanzInMeterCol)) this.DistanzInMeter = source.DistanzInMeter;
			if (includedColumns.Contains(DistanzenTable.DistanzInSecondsCol)) this.DistanzInSeconds = source.DistanzInSeconds;
			if (includedColumns.Contains(DistanzenTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
コード例 #3
0
ファイル: Distanze.generated.cs プロジェクト: heinzsack/DEV
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IDistanze target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.MaschineId = this.MaschineId;
			target.StationId = this.StationId;
			target.DistanzInMeter = this.DistanzInMeter;
			target.DistanzInSeconds = this.DistanzInSeconds;
			target.LastUpdateToken = this.LastUpdateToken;
		}