ASP.NET MVC using the Repository Pattern

前端 未结 6 865
天涯浪人
天涯浪人 2021-02-05 20:41

Currently im using EF and using its datacontext directly in all of my actions, but since i started reading about loose coupling and testability im thinking that thats not the be

6条回答
  •  不思量自难忘°
    2021-02-05 21:40

    You can read this book. There is a good example of the using Repository pattern and LINQ.
    Also there is this article Using Repository and Unit of Work patterns with Entity Framework 4.0.

提交回复
热议问题