Пример #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(IVideoFileEntry source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.FileId = source.FileId;
			this.Type = source.Type;
			this.Availability = source.Availability;
			this.Name = source.Name;
			this.LengthInSeconds = source.LengthInSeconds;
			this.TimingType = source.TimingType;
			this.MaxLengthInSeconds = source.MaxLengthInSeconds;
			this.FoldedArchivePath = source.FoldedArchivePath;
			this.BeitragsTyp = source.BeitragsTyp;
			this.DatenSource = source.DatenSource;
			this.ModifyTimeStamp = source.ModifyTimeStamp;
			this.ConversionStatus = source.ConversionStatus;
			this.ConversionVersion = source.ConversionVersion;
		}
Пример #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(IVideoFileEntry source, params string[] includedColumns)
		{
			if (includedColumns.Contains(VideoFilesTable.FileIdCol)) this.FileId = source.FileId;
			if (includedColumns.Contains(VideoFilesTable.TypeCol)) this.Type = source.Type;
			if (includedColumns.Contains(VideoFilesTable.AvailabilityCol)) this.Availability = source.Availability;
			if (includedColumns.Contains(VideoFilesTable.NameCol)) this.Name = source.Name;
			if (includedColumns.Contains(VideoFilesTable.LengthInSecondsCol)) this.LengthInSeconds = source.LengthInSeconds;
			if (includedColumns.Contains(VideoFilesTable.TimingTypeCol)) this.TimingType = source.TimingType;
			if (includedColumns.Contains(VideoFilesTable.MaxLengthInSecondsCol)) this.MaxLengthInSeconds = source.MaxLengthInSeconds;
			if (includedColumns.Contains(VideoFilesTable.FoldedArchivePathCol)) this.FoldedArchivePath = source.FoldedArchivePath;
			if (includedColumns.Contains(VideoFilesTable.BeitragsTypCol)) this.BeitragsTyp = source.BeitragsTyp;
			if (includedColumns.Contains(VideoFilesTable.DatenSourceCol)) this.DatenSource = source.DatenSource;
			if (includedColumns.Contains(VideoFilesTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp;
			if (includedColumns.Contains(VideoFilesTable.ConversionStatusCol)) this.ConversionStatus = source.ConversionStatus;
			if (includedColumns.Contains(VideoFilesTable.ConversionVersionCol)) this.ConversionVersion = source.ConversionVersion;
		}
Пример #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IVideoFileEntry target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.FileId = this.FileId;
			target.Type = this.Type;
			target.Availability = this.Availability;
			target.Name = this.Name;
			target.LengthInSeconds = this.LengthInSeconds;
			target.TimingType = this.TimingType;
			target.MaxLengthInSeconds = this.MaxLengthInSeconds;
			target.FoldedArchivePath = this.FoldedArchivePath;
			target.BeitragsTyp = this.BeitragsTyp;
			target.DatenSource = this.DatenSource;
			target.ModifyTimeStamp = this.ModifyTimeStamp;
			target.ConversionStatus = this.ConversionStatus;
			target.ConversionVersion = this.ConversionVersion;
		}