Topic:   4. How to Implement Repository Pattern in C# using Entity Framework?
Dec 12, 2020 13:34 1 Replies 487 Views RAMU
  1. How to Implement Repository Pattern in C# using Entity Framework?
Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    PARTH

    To implement repository method in C# using Entity Framework, below are the steps -

    1. Create a new MVC project from Visual Studio.
    2. Create your Context.cs and your entity class inside Model folder for database factory.
    3. Verify the connection string in your web.config file.
    4. Create a folder with name “Repository” inside your project. Add an interface and a class respectively to it.
    5. Add a Controller which directly interact with Repository.
    6. Create View for the Controller action methods.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect