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(IRLog source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.RIdentityId = source.RIdentityId;
			this.Time = source.Time;
			this.SeverityNumber = source.SeverityNumber;
			this.LogCodeNumber = source.LogCodeNumber;
			this.Message = source.Message;
			this.CodeFile = source.CodeFile;
			this.CodeMethod = source.CodeMethod;
			this.CodeLineNumber = source.CodeLineNumber;
			this.CreationTime = source.CreationTime;
		}
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(IRLog source, params string[] includedColumns)
		{
			if (includedColumns.Contains(RLogsTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(RLogsTable.RIdentityIdCol)) this.RIdentityId = source.RIdentityId;
			if (includedColumns.Contains(RLogsTable.TimeCol)) this.Time = source.Time;
			if (includedColumns.Contains(RLogsTable.SeverityNumberCol)) this.SeverityNumber = source.SeverityNumber;
			if (includedColumns.Contains(RLogsTable.LogCodeNumberCol)) this.LogCodeNumber = source.LogCodeNumber;
			if (includedColumns.Contains(RLogsTable.MessageCol)) this.Message = source.Message;
			if (includedColumns.Contains(RLogsTable.CodeFileCol)) this.CodeFile = source.CodeFile;
			if (includedColumns.Contains(RLogsTable.CodeMethodCol)) this.CodeMethod = source.CodeMethod;
			if (includedColumns.Contains(RLogsTable.CodeLineNumberCol)) this.CodeLineNumber = source.CodeLineNumber;
			if (includedColumns.Contains(RLogsTable.CreationTimeCol)) this.CreationTime = source.CreationTime;
		}
Example #3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IRLog target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.RIdentityId = this.RIdentityId;
			target.Time = this.Time;
			target.SeverityNumber = this.SeverityNumber;
			target.LogCodeNumber = this.LogCodeNumber;
			target.Message = this.Message;
			target.CodeFile = this.CodeFile;
			target.CodeMethod = this.CodeMethod;
			target.CodeLineNumber = this.CodeLineNumber;
			target.CreationTime = this.CreationTime;
		}