Esempio 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(IWPMediaLog source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.ComputerName = source.ComputerName;
			this.NumberOfScreens = source.NumberOfScreens;
			this.ClassName = source.ClassName;
			this.Type = source.Type;
			this.TableName = source.TableName;
			this.BeitragId = source.BeitragId;
		}
Esempio 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(IWPMediaLog source, params string[] includedColumns)
		{
			if (includedColumns.Contains(WPMediaLogsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(WPMediaLogsTable.ComputerNameCol)) this.ComputerName = source.ComputerName;
			if (includedColumns.Contains(WPMediaLogsTable.NumberOfScreensCol)) this.NumberOfScreens = source.NumberOfScreens;
			if (includedColumns.Contains(WPMediaLogsTable.ClassNameCol)) this.ClassName = source.ClassName;
			if (includedColumns.Contains(WPMediaLogsTable.TypeCol)) this.Type = source.Type;
			if (includedColumns.Contains(WPMediaLogsTable.TableNameCol)) this.TableName = source.TableName;
			if (includedColumns.Contains(WPMediaLogsTable.BeitragIdCol)) this.BeitragId = source.BeitragId;
		}
Esempio n. 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IWPMediaLog target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.ComputerName = this.ComputerName;
			target.NumberOfScreens = this.NumberOfScreens;
			target.ClassName = this.ClassName;
			target.Type = this.Type;
			target.TableName = this.TableName;
			target.BeitragId = this.BeitragId;
		}