/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IRCertificate source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.Name = source.Name; this.PrivateKey = source.PrivateKey; this.PublicKeyHash = source.PublicKeyHash; this.Description = source.Description; 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(IRCertificate source, params string[] includedColumns) { if (includedColumns.Contains(RCertificatesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(RCertificatesTable.NameCol)) this.Name = source.Name; if (includedColumns.Contains(RCertificatesTable.PrivateKeyCol)) this.PrivateKey = source.PrivateKey; if (includedColumns.Contains(RCertificatesTable.PublicKeyHashCol)) this.PublicKeyHash = source.PublicKeyHash; if (includedColumns.Contains(RCertificatesTable.DescriptionCol)) this.Description = source.Description; if (includedColumns.Contains(RCertificatesTable.CreationTimeCol)) this.CreationTime = source.CreationTime; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IRCertificate target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.Name = this.Name; target.PrivateKey = this.PrivateKey; target.PublicKeyHash = this.PublicKeyHash; target.Description = this.Description; target.CreationTime = this.CreationTime; }