Пример #1
0
 public EFRepository(DbTestsContext context)
 {
     _context = context;
 }
Пример #2
0
 public IEnumerable <OrderDetails> GetAllFromOrderDetails()
 {
     using var context = new DbTestsContext();
     return(CompiledQuery().Invoke(context));
 }
Пример #3
0
 public IEnumerable <OrderDetails> GetAllFromOrderDetails()
 {
     using var context = new DbTestsContext();
     return(context.OrderDetails.FromSqlRaw("SELECT * FROM dbo.[Order Details]").ToList());
 }