Created
June 11, 2018 22:19
-
-
Save explorer14/917a3acd8e68b0d6b508508fd3c39136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomerRepository : ICustomerRepository | |
{ | |
private CRMContext context; | |
public CustomerRepository(IDbContextFactory dbContextFactory) | |
{ | |
this.context = dbContextFactory.Create(); | |
} | |
public IEnumerable GetAllCustomers() | |
{ | |
return this.context?.Customers.ToList().AsEnumerable(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment