Example #1
0
        public TestBll(bool autoDetectChangesEnabled, bool lazyLoadingEnabled, bool isCreateDb)
        {
            Db = new LocationDb(isCreateDb);
            Db.Configuration.AutoDetectChangesEnabled = autoDetectChangesEnabled;
            Db.Configuration.LazyLoadingEnabled       = lazyLoadingEnabled; //关闭延迟加载

            Maps                = new MapBll(Db);
            Areas               = new AreaBll(Db);
            Position            = new PositionBll(DbHistory);
            TagPositions        = new TagPositionBll(Db);
            Departments         = new DepartmentBll(Db);
            Users               = new UserBll(Db);
            Tags                = new TagBll(Db);
            Archors             = new ArchorBll(Db);
            KKSCodes            = new KKSCodeBll(Db);
            t_KKSCodes          = new t_KKSCodeBll(Dbtopviewxp);
            t_SetModels         = new t_SetModelBll(Db);
            t_TypeProperties    = new t_Template_TypePropertyBll(Db);
            TransformMs         = new TransformMBll(Db);
            DevInfos            = new DevInfoBll(Db);
            DevPos              = new DevPosBll(Db);
            U3DPositions        = new U3DPositionBll(DbHistory);
            PhysicalTopologys   = new PhysicalTopologyBll(Db);
            NodeKKSs            = new NodeKKSBll(Db);
            Personnels          = new PersonnelBll(Db);
            Posts               = new PostBll(Db);
            JurisDictions       = new JurisDictionBll(Db);
            JurisDictionRecords = new JurisDictionRecordBll(Db);
            Meterials           = new MeterialBll(Db);
            //U3DPositions.ToList();
            ConfigArgs                            = new ConfigArgBll(Db);
            Bounds                                = new BoundBll(Db);
            Points                                = new PointBll(Db);
            OperationTickets                      = new OperationTicketBll(Db);
            OperationItems                        = new OperationItemBll(Db);
            WorkTickets                           = new WorkTicketBll(Db);
            SafetyMeasuress                       = new SafetyMeasuresBll(Db);
            MobileInspections                     = new MobileInspectionBll(Db);
            MobileInspectionItems                 = new MobileInspectionItemBll(Db);
            MobileInspectionContents              = new MobileInspectionContentBll(Db);
            MobileInspectionDevs                  = new MobileInspectionDevBll(Db);
            PersonnelMobileInspections            = new PersonnelMobileInspectionBll(Db);
            PersonnelMobileInspectionItems        = new PersonnelMobileInspectionItemBll(Db);
            PersonnelMobileInspectionHistorys     = new PersonnelMobileInspectionHistoryBll(DbHistory);
            PersonnelMobileInspectionItemHistorys = new PersonnelMobileInspectionItemHistoryBll(DbHistory);
            OperationTicketHistorys               = new OperationTicketHistoryBll(DbHistory);
            OperationItemHistorys                 = new OperationItemHistoryBll(DbHistory);
            WorkTicketHistorys                    = new WorkTicketHistoryBll(DbHistory);
            SafetyMeasuresHistorys                = new SafetyMeasuresHistoryBll(DbHistory);
            Targets                               = new TargetBll(Db);
            Roles = new RoleBll(Db);
            Menus = new MenuBll(Db);

            Z.EntityFramework.Extensions.LicenseManager.AddLicense("34;100-LLHSWWHA", "384799A60700037CBFC0EB5E03A62474");
        }
 public LocationBll()
 {
     Maps         = new MapBll(Db);
     Areas        = new AreaBll(Db);
     Position     = new PositionBll(DbHistory);
     TagPositions = new TagPositionBll(Db);
     Departments  = new DepartmentBll(Db);
     Users        = new UserBll(Db);
     Tags         = new TagBll(Db);
     Init();
 }