EF.Core.Repository
1.0.0.1
See the version list below for details.
dotnet add package EF.Core.Repository --version 1.0.0.1
NuGet\Install-Package EF.Core.Repository -Version 1.0.0.1
<PackageReference Include="EF.Core.Repository" Version="1.0.0.1" />
paket add EF.Core.Repository --version 1.0.0.1
#r "nuget: EF.Core.Repository, 1.0.0.1"
// Install EF.Core.Repository as a Cake Addin #addin nuget:?package=EF.Core.Repository&version=1.0.0.1 // Install EF.Core.Repository as a Cake Tool #tool nuget:?package=EF.Core.Repository&version=1.0.0.1
Tutorials Link: https://www.youtube.com/watch?v=2Ft2VeexbmQ&list=PLqCbg_KAOnCdhujmjtzszMln8l-hYNxKS
Suppose you want to add student data into the SQL Server database.
Create a “Student” entity model. Then you have to add an interface “IStudnetManager” and inherit “ICommonManager” with set your model name. interface IStudentManager:ICommonManager<Student> { } If you need another custom method for your custom logic then you can add definition in this interface. Other wise it will be empty when you feel the need to write a new method then add method definition. Note : You have to add 1 namespaces using EntityFrameworkCore.Repository.Interface.Manager;
Then you have to add an interface “IStudnetRepository” and inherit “ICommonRepository” with set your model name. interface IStudentRepository:ICommonRepository<Student> { } Note : You have to add 1 namespaces using EntityFrameworkCore.Repository.Interface.Repository;
Create a class “StudentRepository” inherited from “CommonRepository” class with a set Student model and also implement IStudentRepository interface. Sample class. public class StudentRepository:CommonRepository<Student>,IStudentRepository { public StudentRepository(ApplicationDBContext dbContext) : base(dbContext) { } }
Note : You have to add 1 namespaces using EntityFrameworkCore.Repository.Repository;
- Create a class “StudentManager” inherited from “CommonManager” class with a set Student model and also inherit “IStudentManager” and create “StudentManger” constructor using StudentRepository object. Sample class. public class StudentManager:CommonManager<Student>,IStudentManager { public StudentManager(ApplicationDBContext dbContext) : base(new StudentRepository(dbContext)) { } } Note : You have to add 1 namespaces using EntityFrameworkCore.Repository.Manager;
Finally you have to create an object “StudentManager” class then find all of the methods for CRUD operation. StudentManager _studentManager=new StudentManager(dbContext object)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 is compatible. netcoreapp2.1 is compatible. netcoreapp2.2 is compatible. netcoreapp3.0 is compatible. netcoreapp3.1 is compatible. |
-
.NETCoreApp 2.0
- Microsoft.EntityFrameworkCore (>= 3.1.10)
-
.NETCoreApp 2.1
- Microsoft.EntityFrameworkCore (>= 3.1.10)
-
.NETCoreApp 2.2
- Microsoft.EntityFrameworkCore (>= 3.1.10)
-
.NETCoreApp 3.0
- Microsoft.EntityFrameworkCore (>= 3.1.10)
-
.NETCoreApp 3.1
- Microsoft.EntityFrameworkCore (>= 3.1.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.