private static void ImportRules(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictLicenses, Paths Paths, string LogXml2DB) { db.readLogModLicRules(buffer, dictLicenses, Paths, LogXml2DB); // Rules from license manager db.ImportProbesWithRules(buffer, Paths, LogXml2DB); // import Probes and probe rules db.BulkInsert(Uirule.ImportOptionProbes(buffer, Paths, LogXml2DB)); // probe option associations db.BulkInsert(Uirule.ImportVersionRules(buffer, Paths, LogXml2DB)); // versions Rules ImportRegulatoryFeatures(db, buffer, Paths, LogXml2DB); db.BulkInsert(Uirule.ImportRegulatoryRules(buffer, Paths, LogXml2DB)); // Regulatory blocks for country db.BulkInsert(Uirule.ImportRDBlockingRules(buffer, Paths, LogXml2DB)); // R&D blocks for country }
private static void SetDBConfigurations(FeaturesContext db, int BuildNumber) { db.BulkInsert(new List <Dbconfiguration>() { new Dbconfiguration(_Compatibility: FeatureManagerCompatibility.Compatibility, _Version: BuildNumber) }); }
private static void InsertLogicalModels(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictPhysMod, Dictionary <string, int> dictLicenses, Paths Paths, string log) { db.BulkInsert(LogicalModel.Import(dictPhysMod, dictLicenses, buffer, Paths, log)); buffer.p_logicalModels = db.LogicalModel.ToList(); buffer.ModelLicenses = buffer.p_logicalModels.Join(buffer.p_licenses, m => m.LicenseId, l => l.Id, (m, l) => new ModelLicense(m, l)).ToList(); }
private static Dictionary <string, int> InsertPhysicalModels(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(Models.PhysicalModel.Import(Paths, log)); buffer.p_physicalModels = db.PhysicalModel.ToList(); var dictPhysMod = buffer.p_physicalModels.Select(pm => new { pm.Description, pm.Id }).ToDictionary(m => m.Description, m => m.Id); return(dictPhysMod); }
private static Dictionary <string, int> InsertOptions(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log) { db.BulkInsert(Option.Import(dictFeat, Paths, log)); buffer.p_option = db.Option.ToList(); var dictOptions = buffer.p_option.Select(pm => new { pm.Name, pm.Id }).ToDictionary(m => m.Name, m => m.Id); return(dictOptions); }
private static Dictionary <string, int> InsertFeatures(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictLicenses, Paths Paths, string log) { db.BulkInsert(Feature.Import(dictLicenses, Paths, log)); buffer.p_features = db.Feature.ToList(); var dictFeat = buffer.p_features.Select(pm => new { pm.Name, pm.Id }).ToDictionary(m => m.Name, m => m.Id); return(dictFeat); }
private static void InsertLicenseRelationsExceptions(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(LicenseRelationException.Import(buffer, Paths, log)); buffer.p_LicenseRelationExceptions = db.LicenseRelationException.ToList(); }
private static void InsertFeatureRelations(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log) { db.BulkInsert(FeatureRelation.Import(dictFeat, Paths, log, buffer)); }
private static void InsertBundles(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log) { db.BulkInsert(Bundle.Import(dictFeat, Paths, log)); buffer.p_bundles = db.Bundle.ToList(); }
private static void InsertApplications(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log) { db.BulkInsert(Application.Import(dictFeat, Paths, log)); buffer.p_applications = db.Application.ToList(); }
private static void InsertTwinLicenses(FeaturesContext db, Dictionary <string, int> dictLicenses, Paths Paths, string log) { db.BulkInsert(TwinLicenses.Import(dictLicenses, Paths, log)); }
private static void InsertDeprecated(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log) { db.BulkInsert(Deprecated.Import(dictFeat, Paths, log)); buffer.p_Deprecated = db.Deprecated.ToList(); }
private static void InsertMinorVersions(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(MinorVersionAssociation.Import(Paths, log)); buffer.p_MinorVersionAssociation = db.MinorVersionAssociation.ToList(); }
private static void InsertSettingsFamilies(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(SettingFamily.Import(buffer.p_swPacks, Paths, log)); buffer.p_settingsFamilies = db.SettingFamily.ToList(); }
private static void InsertSWPacks(FeaturesContext db, DBBuffer buffer, Paths Paths, string logFileXml2DB) { db.BulkInsert(Swpack.Import(Paths, logFileXml2DB)); buffer.p_swPacks = db.Swpack.ToList(); }
private static void InsertPartNumbers(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(PartNumbersAssociations.Import(Paths, buffer, log)); buffer.p_PartNumbersAssociations = db.PartNumbersAssociations.ToList(); }
private static void InsertCountryLicenses(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(CountryLicense.Import(buffer, Paths, log)); buffer.p_CountryLicenses = db.CountryLicense.ToList(); }
private static void ImportRegulatoryFeatures(FeaturesContext db, DBBuffer buffer, Paths Paths, string LogXml2DB) { db.BulkInsert(RegulatoryFeature.Import(buffer, Paths, LogXml2DB)); buffer.p_RegualtoryFeatures = db.RegulatoryFeature.ToList(); }
private static void InsertCertifiers(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(Certifier.Import(Paths, log)); buffer.p_certifiers = db.Certifier.ToList(); }
private static void InsertDistributors(FeaturesContext db, DBBuffer buffer, Paths Paths, string log) { db.BulkInsert(Distributor.Import(Paths, log)); buffer.p_Distributors = db.Distributor.ToList(); }