public EFData(MailSenderDB DB) { _DB = DB; _Set = DB.Set <T>(); }
protected EFDataProviderOneConnection(MailSenderDB db) { _db = db; _table = db.Set <T>(); }
protected EFDataProvider(MailSenderDB db) { _db = db; _Table = db.Set <T>(); }
public T GetBuId(int id, MailSenderDB db) { return(db.Set <T>().FirstOrDefault(r => r.Id == id) ?? throw new InvalidOperationException($"id {id} not get from bd")); }
protected StoreEF(MailSenderDB db) { _db = db; _Set = db.Set <T>(); }
public DBRepository(MailSenderDB db) { _db = db; Set = db.Set <T>(); }
public StoreInDB(MailSenderDB db) { _db = db; _Set = db.Set <T>(); }
protected DataEF(MailSenderDB db) { _db = db; _Table = _db.Set <T>(); }