Dotnet
User Profile

Exercise - Create Profile Repository

PRO
Outline

Exercise: Create Profile Repository

In the Conduit.Repositories Project:

Create a new Interface Class

Call it IProfileRepository

Create a new class
  • Name it ProfileRepository
  • Implement the IProfileRepository Interface
Inject the following objects into ProfileRepository
  • IAccountRepository
  • ConduitContext
  • IMapper
  • Ilogger

We're not going to put any methods in these classes at the moment except for the constructor which is used for Dependency Injection.

Hint: Review the code in IAccountRepository & AccountRepository.

 

I finished! On to the next chapter