public frmFrequent() { InitializeComponent(); db = new PhishModel(); Repository = new EFRepository(db); LoadGrid(PhishDataType.Undefined); }
public frmStats() { InitializeComponent(); db = new PhishModel(); Repository = new EFRepository(db); Stats(); }
public frmIgnore() { InitializeComponent(); db = new PhishModel(); Repository = new EFRepository(db); LoadGrid(); }
public Form1() { InitializeComponent(); db = new PhishModel(); Repository = new EFRepository(db); AlgorithmClass = new Algorithms(); txtUrl.Text = "www.google.com"; CombinedStats = Repository.Find <UrlStatistic>(s => s.Type == StatisticType.Overall).FirstOrDefault(); }
public EFRepository(PhishModel context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }