예제 #1
0
        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
        }
예제 #2
0
 private static void SetDBConfigurations(FeaturesContext db, int BuildNumber)
 {
     db.BulkInsert(new List <Dbconfiguration>()
     {
         new Dbconfiguration(_Compatibility: FeatureManagerCompatibility.Compatibility, _Version: BuildNumber)
     });
 }
예제 #3
0
 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();
 }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
 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();
 }
예제 #8
0
 private static void InsertFeatureRelations(FeaturesContext db, DBBuffer buffer, Dictionary <string, int> dictFeat, Paths Paths, string log)
 {
     db.BulkInsert(FeatureRelation.Import(dictFeat, Paths, log, buffer));
 }
예제 #9
0
 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();
 }
예제 #10
0
 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();
 }
예제 #11
0
 private static void InsertTwinLicenses(FeaturesContext db, Dictionary <string, int> dictLicenses, Paths Paths, string log)
 {
     db.BulkInsert(TwinLicenses.Import(dictLicenses, Paths, log));
 }
예제 #12
0
 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();
 }
예제 #13
0
 private static void InsertMinorVersions(FeaturesContext db, DBBuffer buffer, Paths Paths, string log)
 {
     db.BulkInsert(MinorVersionAssociation.Import(Paths, log));
     buffer.p_MinorVersionAssociation = db.MinorVersionAssociation.ToList();
 }
예제 #14
0
 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();
 }
예제 #15
0
 private static void InsertSWPacks(FeaturesContext db, DBBuffer buffer, Paths Paths, string logFileXml2DB)
 {
     db.BulkInsert(Swpack.Import(Paths, logFileXml2DB));
     buffer.p_swPacks = db.Swpack.ToList();
 }
예제 #16
0
 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();
 }
예제 #17
0
 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();
 }
예제 #18
0
 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();
 }
예제 #19
0
 private static void InsertCertifiers(FeaturesContext db, DBBuffer buffer, Paths Paths, string log)
 {
     db.BulkInsert(Certifier.Import(Paths, log));
     buffer.p_certifiers = db.Certifier.ToList();
 }
예제 #20
0
 private static void InsertDistributors(FeaturesContext db, DBBuffer buffer, Paths Paths, string log)
 {
     db.BulkInsert(Distributor.Import(Paths, log));
     buffer.p_Distributors = db.Distributor.ToList();
 }