Example #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(ISplitToken source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.UsedFor = source.UsedFor;
			this.Token = source.Token;
			this.TokenAliases = source.TokenAliases;
			this.ProcessingTyp = source.ProcessingTyp;
			this.TypId = source.TypId;
			this.DataDependencyId = source.DataDependencyId;
			this.DataElementeTemplatesId = source.DataElementeTemplatesId;
			this.ProcessingPriority = source.ProcessingPriority;
			this.LastUpdateToken = source.LastUpdateToken;
		}
Example #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(ISplitToken source, params string[] includedColumns)
		{
			if (includedColumns.Contains(SplitTokensTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(SplitTokensTable.UsedForCol)) this.UsedFor = source.UsedFor;
			if (includedColumns.Contains(SplitTokensTable.TokenCol)) this.Token = source.Token;
			if (includedColumns.Contains(SplitTokensTable.TokenAliasesCol)) this.TokenAliases = source.TokenAliases;
			if (includedColumns.Contains(SplitTokensTable.ProcessingTypCol)) this.ProcessingTyp = source.ProcessingTyp;
			if (includedColumns.Contains(SplitTokensTable.TypIdCol)) this.TypId = source.TypId;
			if (includedColumns.Contains(SplitTokensTable.DataDependencyIdCol)) this.DataDependencyId = source.DataDependencyId;
			if (includedColumns.Contains(SplitTokensTable.DataElementeTemplatesIdCol)) this.DataElementeTemplatesId = source.DataElementeTemplatesId;
			if (includedColumns.Contains(SplitTokensTable.ProcessingPriorityCol)) this.ProcessingPriority = source.ProcessingPriority;
			if (includedColumns.Contains(SplitTokensTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken;
		}
Example #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(ISplitToken target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.UsedFor = this.UsedFor;
			target.Token = this.Token;
			target.TokenAliases = this.TokenAliases;
			target.ProcessingTyp = this.ProcessingTyp;
			target.TypId = this.TypId;
			target.DataDependencyId = this.DataDependencyId;
			target.DataElementeTemplatesId = this.DataElementeTemplatesId;
			target.ProcessingPriority = this.ProcessingPriority;
			target.LastUpdateToken = this.LastUpdateToken;
		}