예제 #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(IRException source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.RIdentityId = source.RIdentityId;
			this.Time = source.Time;
			this.Type = source.Type;
			this.Source = source.Source;
			this.Class = source.Class;
			this.Method = source.Method;
			this.Message = source.Message;
			this.StackTrace = source.StackTrace;
			this.CreationTime = source.CreationTime;
		}
예제 #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(IRException source, params string[] includedColumns)
		{
			if (includedColumns.Contains(RExceptionsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(RExceptionsTable.RIdentityIdCol)) this.RIdentityId = source.RIdentityId;
			if (includedColumns.Contains(RExceptionsTable.TimeCol)) this.Time = source.Time;
			if (includedColumns.Contains(RExceptionsTable.TypeCol)) this.Type = source.Type;
			if (includedColumns.Contains(RExceptionsTable.SourceCol)) this.Source = source.Source;
			if (includedColumns.Contains(RExceptionsTable.ClassCol)) this.Class = source.Class;
			if (includedColumns.Contains(RExceptionsTable.MethodCol)) this.Method = source.Method;
			if (includedColumns.Contains(RExceptionsTable.MessageCol)) this.Message = source.Message;
			if (includedColumns.Contains(RExceptionsTable.StackTraceCol)) this.StackTrace = source.StackTrace;
			if (includedColumns.Contains(RExceptionsTable.CreationTimeCol)) this.CreationTime = source.CreationTime;
		}
예제 #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IRException target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.RIdentityId = this.RIdentityId;
			target.Time = this.Time;
			target.Type = this.Type;
			target.Source = this.Source;
			target.Class = this.Class;
			target.Method = this.Method;
			target.Message = this.Message;
			target.StackTrace = this.StackTrace;
			target.CreationTime = this.CreationTime;
		}