예제 #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(IMaterialJPG source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.Description = source.Description;
			this.FullFileNameToLoadFrom = source.FullFileNameToLoadFrom;
			this.TypId = source.TypId;
			this.LastWriteFileTime = source.LastWriteFileTime;
			this.LastLoadTime = source.LastLoadTime;
			this.HashCode = source.HashCode;
			this.ValueThumb = source.ValueThumb;
			this.Value = source.Value;
			this.PictureTakenDateTime = source.PictureTakenDateTime;
			this.WLaengeReal = source.WLaengeReal;
			this.WBreiteReal = source.WBreiteReal;
			this.WLaengeOrt = source.WLaengeOrt;
			this.WBreiteOrt = source.WBreiteOrt;
			this.WLaengePictureTaken = source.WLaengePictureTaken;
			this.WBreitePictureTaken = source.WBreitePictureTaken;
			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(IMaterialJPG source, params string[] includedColumns)
		{
			if (includedColumns.Contains(MaterialienJPGTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(MaterialienJPGTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(MaterialienJPGTable.DescriptionCol)) this.Description = source.Description;
			if (includedColumns.Contains(MaterialienJPGTable.FullFileNameToLoadFromCol)) this.FullFileNameToLoadFrom = source.FullFileNameToLoadFrom;
			if (includedColumns.Contains(MaterialienJPGTable.TypIdCol)) this.TypId = source.TypId;
			if (includedColumns.Contains(MaterialienJPGTable.LastWriteFileTimeCol)) this.LastWriteFileTime = source.LastWriteFileTime;
			if (includedColumns.Contains(MaterialienJPGTable.LastLoadTimeCol)) this.LastLoadTime = source.LastLoadTime;
			if (includedColumns.Contains(MaterialienJPGTable.HashCodeCol)) this.HashCode = source.HashCode;
			if (includedColumns.Contains(MaterialienJPGTable.ValueThumbCol)) this.ValueThumb = source.ValueThumb;
			if (includedColumns.Contains(MaterialienJPGTable.ValueCol)) this.Value = source.Value;
			if (includedColumns.Contains(MaterialienJPGTable.PictureTakenDateTimeCol)) this.PictureTakenDateTime = source.PictureTakenDateTime;
			if (includedColumns.Contains(MaterialienJPGTable.WLaengeRealCol)) this.WLaengeReal = source.WLaengeReal;
			if (includedColumns.Contains(MaterialienJPGTable.WBreiteRealCol)) this.WBreiteReal = source.WBreiteReal;
			if (includedColumns.Contains(MaterialienJPGTable.WLaengeOrtCol)) this.WLaengeOrt = source.WLaengeOrt;
			if (includedColumns.Contains(MaterialienJPGTable.WBreiteOrtCol)) this.WBreiteOrt = source.WBreiteOrt;
			if (includedColumns.Contains(MaterialienJPGTable.WLaengePictureTakenCol)) this.WLaengePictureTaken = source.WLaengePictureTaken;
			if (includedColumns.Contains(MaterialienJPGTable.WBreitePictureTakenCol)) this.WBreitePictureTaken = source.WBreitePictureTaken;
			if (includedColumns.Contains(MaterialienJPGTable.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(IMaterialJPG target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.Description = this.Description;
			target.FullFileNameToLoadFrom = this.FullFileNameToLoadFrom;
			target.TypId = this.TypId;
			target.LastWriteFileTime = this.LastWriteFileTime;
			target.LastLoadTime = this.LastLoadTime;
			target.HashCode = this.HashCode;
			target.ValueThumb = this.ValueThumb;
			target.Value = this.Value;
			target.PictureTakenDateTime = this.PictureTakenDateTime;
			target.WLaengeReal = this.WLaengeReal;
			target.WBreiteReal = this.WBreiteReal;
			target.WLaengeOrt = this.WLaengeOrt;
			target.WBreiteOrt = this.WBreiteOrt;
			target.WLaengePictureTaken = this.WLaengePictureTaken;
			target.WBreitePictureTaken = this.WBreitePictureTaken;
			target.LastUpdateToken = this.LastUpdateToken;
		}