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);
     }
 }
Beispiel #2
0
 public Repository(ProductManagement pm)
 {
     context = pm;
 }
Beispiel #3
0
 public ProductRepository(ProductManagement pm) : base(pm)
 {
 }
 public CustomerRepository(ProductManagement pm) : base(pm)
 {
 }