EF.Repository 1.0.0.3

.NET Framework 4.0
Install-Package EF.Repository -Version 1.0.0.3
dotnet add package EF.Repository --version 1.0.0.3
<PackageReference Include="EF.Repository" Version="1.0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EF.Repository --version 1.0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EF.Repository, 1.0.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EF.Repository as a Cake Addin
#addin nuget:?package=EF.Repository&version=1.0.0.3

// Install EF.Repository as a Cake Tool
#tool nuget:?package=EF.Repository&version=1.0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Tutorials Link: https://www.youtube.com/watch?v=cFHygOhcIqc&list=PLqCbg_KAOnCcBYfxAMWeX2CXZ9uFy-Jo7

Suppose you want to add student data into the SQL Server database.

  1. 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 EF.Repository.Interface.Manager;

  2. 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 EF.Repository.Interface.Repository;

  3. 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 EF.Repository.Repository;

  1. 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 EF.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
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0.3 199 5/4/2021
1.0.0.2 197 12/24/2020
1.0.0.1 196 12/24/2020