Introduction to SQL
Fork and clone this repo
Expand the ProductRepository
class
Navigate to the ProductRepository.cs
and properly implement/complete all methods using raw SQL. When done, the ProductRepository
class should be able to:
SELECT
all productsDELETE
a product with a particularProductId
UPDATE
a product's name with a particularProductId
INSERT
a new product
Create a DapperProductRepository
class
Add a class called DapperProductRepository
and enable the same methods implemented in the ProductRepository
class, but avoid raw SQL in favor of Dapper. Make sure you implement:
SELECT
all productsDELETE
a product with a particularProductId
UPDATE
a product's name with a particularProductId
INSERT
a new product
Add 2 methods to your DapperProductRepository
class
- Add a method called
GetProductsWithReview
that performs anINNER JOIN
- Add a method called
GetProductsAndReviews
that performs aLEFT JOIN
Make a pull request
Good luck!