#RespositoryPattern
Explore tagged Tumblr posts
Text
Implement Repository pattern with Entity Framework and C#
Implement Repository pattern with Entity Framework and C#
In the WebAPIConfig.cs file, register the repository with the Unity Container. This code file defines the delegate where you should put your Web API configuration code.
var container = new Unity.UnityContainer(); // this will register all Repositories that implement Repository. // because of the generics, you have to use the concrete type not the interface for…
View On WordPress
1 note
·
View note