You can use EF Core so you must define the Interface of CRUD operations of repository as image below:
Then you can implement the Interface or generic repository with a class:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
You can use EF Core so you must define the Interface of CRUD operations of repository as image below:
Then you can implement the Interface or generic repository with a class:
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
note: as EF implements the repository pattern, it is generally useless to write one on top of it.