public EFRepository(DbTestsContext context) { _context = context; }
public IEnumerable <OrderDetails> GetAllFromOrderDetails() { using var context = new DbTestsContext(); return(CompiledQuery().Invoke(context)); }
public IEnumerable <OrderDetails> GetAllFromOrderDetails() { using var context = new DbTestsContext(); return(context.OrderDetails.FromSqlRaw("SELECT * FROM dbo.[Order Details]").ToList()); }