static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Metric.Config.WithHttpEndpoint("http://localhost:1234/").WithAllCounters(); AllocConsole(); using (MobileManagementContext db = new MobileManagementContext()) { IRepository repository = new EfRepository(db); Application.Run(new MainForm(repository)); } }
public EfRepository(MobileManagementContext db) { _db = db; }