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)
 {
 }