private void CreateService()
        {
            var builder = new DbContextOptionsBuilder <SMContext>().UseSqlServer("Server=.\\SQLEXPRESS;Database=MariaDB;Trusted_Connection=True;");

            _SMContext = new SMContext(builder.Options);
            _ICampaign = new HistoryCompaign(_SMContext);
        }
Esempio n. 2
0
 public HistoryCompaignController(IHistoryCompaign iHistoryCampaign, IExportExcel iExportExcel, SMContext sMContext)
 {
     _IHistoryCampaign = iHistoryCampaign;
     _IExportExcel     = iExportExcel;
     _SMContext        = sMContext;
 }