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(IRFeedback source, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) this.Id = source.Id;
			this.RIdentityId = source.RIdentityId;
			this.Time = source.Time;
			this.Autor = source.Autor;
			this.Message = source.Message;
			this.CreationTime = source.CreationTime;
		}
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(IRFeedback source, params string[] includedColumns)
		{
			if (includedColumns.Contains(RFeedbacksTable.IdCol)) this.Id = source.Id;
			if (includedColumns.Contains(RFeedbacksTable.RIdentityIdCol)) this.RIdentityId = source.RIdentityId;
			if (includedColumns.Contains(RFeedbacksTable.TimeCol)) this.Time = source.Time;
			if (includedColumns.Contains(RFeedbacksTable.AutorCol)) this.Autor = source.Autor;
			if (includedColumns.Contains(RFeedbacksTable.MessageCol)) this.Message = source.Message;
			if (includedColumns.Contains(RFeedbacksTable.CreationTimeCol)) this.CreationTime = source.CreationTime;
		}
Esempio n. 3
0
		///	<summary> This method copy's each database field into the <paramref name="target"/> interface. </summary>
		public void Copy_To(IRFeedback target, bool includePrimaryKey = false)
		{
			if (includePrimaryKey) target.Id = this.Id;
			target.RIdentityId = this.RIdentityId;
			target.Time = this.Time;
			target.Autor = this.Autor;
			target.Message = this.Message;
			target.CreationTime = this.CreationTime;
		}