| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using OHV.Common.Interfaces;
- using OHV.SqliteDAL.DAL;
- using Prism.Ioc;
- using Prism.Modularity;
- namespace OHV.SqliteDAL
- {
- [Module(ModuleName = "SqliteManager")]
- public class SqliteManager : ISqlManager, IModule
- {
- public ConfigDAL ConfigDal { get; set; }
- public RouteDAL RouteDal { get; set; }
- public CommandDAL CommandDAL { get; set; }
- public SubCmdDAL SubCmdDAL { get; set; }
- public AxisConfigDAL AxisConfigDAL { get; set; }
- public AxisPositionDataDAL AxisPositionDataDAL { get; set; }
- public AxisVelocityDataDAL AxisVelocityDataDAL { get; set; }
- public AlarmDAL AlarmDAL { get; set; }
- public HisAlarmDAL HisAlarmDAL { get; set; }
- public VehicleInfoDAL VehicleInfoDAL { get; set; }
- public SqliteManager()
- {
- this.ConfigDal = new ConfigDAL();
- this.RouteDal = new RouteDAL();
- this.SubCmdDAL = new SubCmdDAL();
- this.CommandDAL = new CommandDAL();
- this.AxisConfigDAL = new AxisConfigDAL();
- this.AxisPositionDataDAL = new AxisPositionDataDAL();
- this.AxisVelocityDataDAL = new AxisVelocityDataDAL();
- this.AlarmDAL = new AlarmDAL();
- this.HisAlarmDAL = new HisAlarmDAL();
-
- this.VehicleInfoDAL = new VehicleInfoDAL();
- }
- public void RegisterTypes(IContainerRegistry containerRegistry)
- {
- if (!containerRegistry.IsRegistered<SqliteManager>())
- containerRegistry.RegisterSingleton<SqliteManager>();
- }
- public void OnInitialized(IContainerProvider containerProvider)
- {
- }
- }
- }
|