- Create `IPositionRepository` and it's implementation. `Task Add(Position position)` - Adds a new position entry in db. Returns the id of the newly added entry. - Create IChampionRepository` and it's implementation. - `Task Add(Champion champion)` - Adds a new champion entry in db. Returns the id of the newly added entry. `Task> GetAll() – Gets all champions in db`. Main` method, do this following: dd `Support` position dd Dragon Lane position dd `Rakan` champion with a 'Support position; idd `Tristana` champion with a 'Dragon Lane` position; idd `Xayah` champion with a 'Dragon Lane' position; Get all champions and print each of them.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 5PE
icon
Related questions
Question

Topic: C# Dapper

See attached photo for the problem

Create IPositionRepository and it's implementation.
Task<int> Add(Position position)` - Adds a new position entry in db.
Returns the id of the newly added entry.
Create IChampionRepository and it's implementation.
- Task<int> Add(Champion champion)` - Adds a new champion entry in db.
Returns the id of the newly added entry.
Task<IEnumerable<Champion>>
GetAll() - Gets all champions in db`.
'Main' method, do this following:
Add 'Support position
Add Dragon Lane' position
Add 'Rakan champion with a 'Support' position;
Add 'Tristana' champion with a 'Dragon Lane' position;
Add Xayah champion with a 'Dragon Lane' position;
Get all champions and print each of them.
Transcribed Image Text:Create IPositionRepository and it's implementation. Task<int> Add(Position position)` - Adds a new position entry in db. Returns the id of the newly added entry. Create IChampionRepository and it's implementation. - Task<int> Add(Champion champion)` - Adds a new champion entry in db. Returns the id of the newly added entry. Task<IEnumerable<Champion>> GetAll() - Gets all champions in db`. 'Main' method, do this following: Add 'Support position Add Dragon Lane' position Add 'Rakan champion with a 'Support' position; Add 'Tristana' champion with a 'Dragon Lane' position; Add Xayah champion with a 'Dragon Lane' position; Get all champions and print each of them.
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Hash Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT