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