public UnitOfWork() { var connString = ConfigurationManager.ConnectionStrings["DRAContext"].ConnectionString; if (string.IsNullOrEmpty(connString)) { context = new DRAContext(); } else { context = new DRAContext(connString); } }
public Repository(DRAContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }