/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPendingNotification source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.WebUserId = source.WebUserId; this.TypeNumber = source.TypeNumber; this.Text = source.Text; this.TextFooter = source.TextFooter; this.ReferencedTable = source.ReferencedTable; this.ReferencedId = source.ReferencedId; this.SeenTime = source.SeenTime; this.Time = source.Time; this.SentPerMail = source.SentPerMail; this.CreationTime = source.CreationTime; }
/// <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(IPendingNotification source, params string[] includedColumns) { if (includedColumns.Contains(PendingNotificationsTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PendingNotificationsTable.WebUserIdCol)) this.WebUserId = source.WebUserId; if (includedColumns.Contains(PendingNotificationsTable.TypeNumberCol)) this.TypeNumber = source.TypeNumber; if (includedColumns.Contains(PendingNotificationsTable.TextCol)) this.Text = source.Text; if (includedColumns.Contains(PendingNotificationsTable.TextFooterCol)) this.TextFooter = source.TextFooter; if (includedColumns.Contains(PendingNotificationsTable.ReferencedTableCol)) this.ReferencedTable = source.ReferencedTable; if (includedColumns.Contains(PendingNotificationsTable.ReferencedIdCol)) this.ReferencedId = source.ReferencedId; if (includedColumns.Contains(PendingNotificationsTable.SeenTimeCol)) this.SeenTime = source.SeenTime; if (includedColumns.Contains(PendingNotificationsTable.TimeCol)) this.Time = source.Time; if (includedColumns.Contains(PendingNotificationsTable.SentPerMailCol)) this.SentPerMail = source.SentPerMail; if (includedColumns.Contains(PendingNotificationsTable.CreationTimeCol)) this.CreationTime = source.CreationTime; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPendingNotification target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.WebUserId = this.WebUserId; target.TypeNumber = this.TypeNumber; target.Text = this.Text; target.TextFooter = this.TextFooter; target.ReferencedTable = this.ReferencedTable; target.ReferencedId = this.ReferencedId; target.SeenTime = this.SeenTime; target.Time = this.Time; target.SentPerMail = this.SentPerMail; target.CreationTime = this.CreationTime; }