/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IRIdentity source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.RUserId = source.RUserId; this.RApplicationReleaseId = source.RApplicationReleaseId; this.RFeedbackCount = source.RFeedbackCount; this.RExceptionCount = source.RExceptionCount; this.RLogCount = source.RLogCount; this.StartupCount = source.StartupCount; this.UsageTime = source.UsageTime; this.ProcessFile = source.ProcessFile; this.ReceivedRPackets = source.ReceivedRPackets; this.LatestRPacket = source.LatestRPacket; this.LatestRCertificate = source.LatestRCertificate; 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(IRIdentity source, params string[] includedColumns) { if (includedColumns.Contains(RIdentitysTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(RIdentitysTable.RUserIdCol)) this.RUserId = source.RUserId; if (includedColumns.Contains(RIdentitysTable.RApplicationReleaseIdCol)) this.RApplicationReleaseId = source.RApplicationReleaseId; if (includedColumns.Contains(RIdentitysTable.RFeedbackCountCol)) this.RFeedbackCount = source.RFeedbackCount; if (includedColumns.Contains(RIdentitysTable.RExceptionCountCol)) this.RExceptionCount = source.RExceptionCount; if (includedColumns.Contains(RIdentitysTable.RLogCountCol)) this.RLogCount = source.RLogCount; if (includedColumns.Contains(RIdentitysTable.UnsignedStartupCountCol)) this.StartupCount = source.StartupCount; if (includedColumns.Contains(RIdentitysTable.UsageTimeCol)) this.UsageTime = source.UsageTime; if (includedColumns.Contains(RIdentitysTable.ProcessFileCol)) this.ProcessFile = source.ProcessFile; if (includedColumns.Contains(RIdentitysTable.ReceivedRPacketsCol)) this.ReceivedRPackets = source.ReceivedRPackets; if (includedColumns.Contains(RIdentitysTable.LatestRPacketCol)) this.LatestRPacket = source.LatestRPacket; if (includedColumns.Contains(RIdentitysTable.LatestRCertificateCol)) this.LatestRCertificate = source.LatestRCertificate; if (includedColumns.Contains(RIdentitysTable.CreationTimeCol)) this.CreationTime = source.CreationTime; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IRIdentity target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.RUserId = this.RUserId; target.RApplicationReleaseId = this.RApplicationReleaseId; target.RFeedbackCount = this.RFeedbackCount; target.RExceptionCount = this.RExceptionCount; target.RLogCount = this.RLogCount; target.StartupCount = this.StartupCount; target.UsageTime = this.UsageTime; target.ProcessFile = this.ProcessFile; target.ReceivedRPackets = this.ReceivedRPackets; target.LatestRPacket = this.LatestRPacket; target.LatestRCertificate = this.LatestRCertificate; target.CreationTime = this.CreationTime; }