public Form1() { InitializeComponent(); var opBuilder = new DbContextOptionsBuilder <AppDatabaseContext>(); var conStringBuilder = new SqliteConnectionStringBuilder(); conStringBuilder.DataSource = @"AppDB.db"; opBuilder.UseSqlite(conStringBuilder.ConnectionString); this.context = new AppDatabaseContext(opBuilder.Options); this.chm = new ChannelManager(this.context); this.cm = new ConnectorManager(this.context); this.ctwm = new ConnectorToWireManager(this.context); this.dm = new DeviceManager(this.context); this.mm = new MeasurementManager(this.context); this.om = new ObstacleManager(this.context); this.omm = new ObstacleAmountManager(this.context); this.wm = new WireManager(this.context); this.wam = new WireAttenuationManager(this.context); this.nfi.NumberDecimalSeparator = "."; Init(); }
public WireManager(AppDatabaseContext context) { this.rep = new WireRepository(context); this.repAtt = new WireAttenuationRepository(context); this.wam = new WireAttenuationManager(context); }