private static void BindUpdateParameters(DomainIgnore domainIgnore, DbUpdater updater, bool includeId = true)
 {
     if (includeId)
     {
         updater.BindParameter("domain_ignore_id", System.Data.DbType.Int32, domainIgnore.DomainIgnoreId);
     }
     updater.BindParameter("domain_to_ignore", System.Data.DbType.String, domainIgnore.DomainToIgnore);
     updater.BindParameter("domain_id", System.Data.DbType.Int32, domainIgnore.DomainId);
 }
示例#2
0
 private static void BindUpdateParameters(Subdomain subdomain, DbUpdater updater, bool includeId = true)
 {
     if (includeId)
     {
         updater.BindParameter("sub_domain_id", System.Data.DbType.Int32, subdomain.SubdomainId);
     }
     updater.BindParameter("sub_domain_name", System.Data.DbType.String, subdomain.SubdomainName);
     updater.BindParameter("domain_id", System.Data.DbType.Int32, subdomain.DomainId);
     updater.BindParameter("date_found", System.Data.DbType.DateTime, subdomain.DateFound);
     updater.BindParameter("found_type", System.Data.DbType.String, subdomain.FoundType);
 }
 private static void BindUpdateParameters(Clark.Domain.Data.Domain domain, DbUpdater updater, bool includeId = true)
 {
     if (includeId)
     {
         updater.BindParameter("domain_id", System.Data.DbType.Int32, domain.DomainId);
     }
     updater.BindParameter("domain_name", System.Data.DbType.String, domain.DomainName);
     updater.BindParameter("bounty_url", System.Data.DbType.String, domain.BountyURL);
     updater.BindParameter("bounty_end_date", System.Data.DbType.DateTime, domain.BountyEndDate);
     updater.BindParameter("last_scan", System.Data.DbType.DateTime, domain.LastScan);
     updater.BindParameter("private", System.Data.DbType.Boolean, domain.Private);
     updater.BindParameter("platform", System.Data.DbType.String, domain.Platform);
 }