コード例 #1
0
 public static IQueryable <Customer> GetCustomerByIdQuery(DotekaContext context, int id)
 {
     return(from c in context.Customers where c.ID.Equals(id) select c);
 }
コード例 #2
0
 public IQueryable <ServiceContract> GetServiceContractByIdQuery(DotekaContext context, int id)
 {
     return(from s in context.ServiceContracts where s.ID.Equals(id) select s);
 }
コード例 #3
0
 public CustomerController(DotekaContext context)
 {
     this._context = context;
 }
コード例 #4
0
 public ServiceContractController(DotekaContext context)
 {
     this._context = context;
 }