/// <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(IApplicationRelease source, params string[] includedColumns) { if (includedColumns.Contains(ApplicationReleasesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(ApplicationReleasesTable.ApplicationIdCol)) this.ApplicationId = source.ApplicationId; if (includedColumns.Contains(ApplicationReleasesTable.VersionCol)) this.Version = source.Version; if (includedColumns.Contains(ApplicationReleasesTable.IdentitysCountCol)) this.IdentitysCount = source.IdentitysCount; if (includedColumns.Contains(ApplicationReleasesTable.ReceivedRPacketsCol)) this.ReceivedRPackets = source.ReceivedRPackets; if (includedColumns.Contains(ApplicationReleasesTable.LatestRPacketCol)) this.LatestRPacket = source.LatestRPacket; if (includedColumns.Contains(ApplicationReleasesTable.CreationTimeCol)) this.CreationTime = source.CreationTime; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IApplicationRelease target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.ApplicationId = this.ApplicationId; target.Version = this.Version; target.IdentitysCount = this.IdentitysCount; target.ReceivedRPackets = this.ReceivedRPackets; target.LatestRPacket = this.LatestRPacket; target.CreationTime = this.CreationTime; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IApplicationRelease source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.ApplicationId = source.ApplicationId; this.Version = source.Version; this.IdentitysCount = source.IdentitysCount; this.ReceivedRPackets = source.ReceivedRPackets; this.LatestRPacket = source.LatestRPacket; this.CreationTime = source.CreationTime; }
public static void CopyInto(this CsspIdentity packet, IApplicationRelease target) { target.Version = packet.ApplicationVersion; target.ApplicationId = packet.ApplicationId; }