public Customer GetCustomerByEmail(string email)
 {
     using (ProductManagement context = new ProductManagement())
     {
         var queryResult = (from C in context.Customers
                            where C.Email == email
                            select C).FirstOrDefault();
         return(queryResult);
     }
 }
예제 #2
0
 public Repository(ProductManagement pm)
 {
     context = pm;
 }
예제 #3
0
 public ProductRepository(ProductManagement pm) : base(pm)
 {
 }
 public CustomerRepository(ProductManagement pm) : base(pm)
 {
 }