示例#1
0
 public CustomerController(DashboardPostgresContext context)
 {
     _context = context;
 }
示例#2
0
 public DataSeed(DashboardPostgresContext context)
 {
     _context = context;
 }
示例#3
0
 public ServerController(DashboardPostgresContext context)
 {
     _context = context;
 }
示例#4
0
        public Customer GetRandomCustomer(DashboardPostgresContext context)
        {
            var randomId = _rand.Next(1, context.Customers.Count());

            return(context.Customers.First(c => c.Id == randomId));
        }