Ejemplo 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(IButtonData source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.NameId = source.NameId;
			this.NumberOfPages = source.NumberOfPages;
			this.ParentId = source.ParentId;
			this.Text = source.Text;
			this.LinkType = source.LinkType;
			this.LinkData = source.LinkData;
			this.LinkDuration = source.LinkDuration;
			this.ShowOnlyList = source.ShowOnlyList;
			this.Row = source.Row;
			this.Column = source.Column;
			this.FileName = source.FileName;
			this.EntryType = source.EntryType;
			this.ImageBefore = source.ImageBefore;
			this.ImageAfter = source.ImageAfter;
			this.Format = source.Format;
			this.ModifyTimeStamp = source.ModifyTimeStamp;
			this.ProcessingStatus = source.ProcessingStatus;
		}
Ejemplo 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(IButtonData source, params string[] includedColumns)
		{
			if (includedColumns.Contains(ButtonDatasTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(ButtonDatasTable.NameIdCol)) this.NameId = source.NameId;
			if (includedColumns.Contains(ButtonDatasTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages;
			if (includedColumns.Contains(ButtonDatasTable.ParentIdCol)) this.ParentId = source.ParentId;
			if (includedColumns.Contains(ButtonDatasTable.TextCol)) this.Text = source.Text;
			if (includedColumns.Contains(ButtonDatasTable.LinkTypeCol)) this.LinkType = source.LinkType;
			if (includedColumns.Contains(ButtonDatasTable.LinkDataCol)) this.LinkData = source.LinkData;
			if (includedColumns.Contains(ButtonDatasTable.LinkDurationCol)) this.LinkDuration = source.LinkDuration;
			if (includedColumns.Contains(ButtonDatasTable.ShowOnlyListCol)) this.ShowOnlyList = source.ShowOnlyList;
			if (includedColumns.Contains(ButtonDatasTable.RowCol)) this.Row = source.Row;
			if (includedColumns.Contains(ButtonDatasTable.ColumnCol)) this.Column = source.Column;
			if (includedColumns.Contains(ButtonDatasTable.FileNameCol)) this.FileName = source.FileName;
			if (includedColumns.Contains(ButtonDatasTable.EntryTypeCol)) this.EntryType = source.EntryType;
			if (includedColumns.Contains(ButtonDatasTable.ImageBeforeCol)) this.ImageBefore = source.ImageBefore;
			if (includedColumns.Contains(ButtonDatasTable.ImageAfterCol)) this.ImageAfter = source.ImageAfter;
			if (includedColumns.Contains(ButtonDatasTable.FormatCol)) this.Format = source.Format;
			if (includedColumns.Contains(ButtonDatasTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp;
			if (includedColumns.Contains(ButtonDatasTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus;
		}
Ejemplo n.º 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IButtonData target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.NameId = this.NameId;
			target.NumberOfPages = this.NumberOfPages;
			target.ParentId = this.ParentId;
			target.Text = this.Text;
			target.LinkType = this.LinkType;
			target.LinkData = this.LinkData;
			target.LinkDuration = this.LinkDuration;
			target.ShowOnlyList = this.ShowOnlyList;
			target.Row = this.Row;
			target.Column = this.Column;
			target.FileName = this.FileName;
			target.EntryType = this.EntryType;
			target.ImageBefore = this.ImageBefore;
			target.ImageAfter = this.ImageAfter;
			target.Format = this.Format;
			target.ModifyTimeStamp = this.ModifyTimeStamp;
			target.ProcessingStatus = this.ProcessingStatus;
		}