asp.net core repositary pattern using ado.net

kannan desikan 26 Reputation points
2022-08-18T08:42:12.56+00:00

Hi,

i want to implement ado.net connection to implement crud operations for my project using T class and func., please share
any learning link to implement the sam.e

Developer technologies ASP.NET ASP.NET Core
SQL Server Other
0 comments No comments
{count} vote

Accepted answer
  1. Damiano Andresini 171 Reputation points
    2022-08-18T10:12:55.943+00:00

    You can use EF Core so you must define the Interface of CRUD operations of repository as image below:
    232240-image.png

    Then you can implement the Interface or generic repository with a class:

    232352-image.png

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Yogi 351 Reputation points
    2022-08-31T13:05:28.42+00:00

    Repository is a patter which you create in an interface and then you register it on the startup.cs class. Kindly see -

    ASP.NET Core Razor Pages : CRUD Operations with Repository Pattern and Entity Framework Core

    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-09-01T20:29:05.587+00:00

    note: as EF implements the repository pattern, it is generally useless to write one on top of it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.