EF.Repository
1.0.0.2
See the version list below for details.
dotnet add package EF.Repository --version 1.0.0.2
NuGet\Install-Package EF.Repository -Version 1.0.0.2
<PackageReference Include="EF.Repository" Version="1.0.0.2" />
paket add EF.Repository --version 1.0.0.2
#r "nuget: EF.Repository, 1.0.0.2"
// Install EF.Repository as a Cake Addin #addin nuget:?package=EF.Repository&version=1.0.0.2 // Install EF.Repository as a Cake Tool #tool nuget:?package=EF.Repository&version=1.0.0.2
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 EntityFramework.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 EntityFramework.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() : base(new ApplicationDBContext()) { } }
Note : You have to add 1 namespaces using EntityFramework.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() : base(new StudentRepository()) { } } Note : You have to add 1 namespaces using EntityFramework.Repository.Manager;
Finally you have to create an object “StudentManager” class then find all of the methods for CRUD operation. StudentManager _studentManager=new StudentManager()
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net40 is compatible. net403 was computed. net45 is compatible. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.0
- EntityFramework (>= 6.4.4)
-
.NETFramework 4.5
- EntityFramework (>= 6.4.4)
-
.NETFramework 4.6
- EntityFramework (>= 6.4.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.