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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,134 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,640 questions
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 346 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) 54,866 Reputation points
    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