C# Repository and Service
I have a Repository layer which implements some CRUD operations, and also a Service layer (which in some cases may have references to multiple repositories) for all of my entities.
Let's assume the following:
IRepository has void Add(EntityA entity);
IService has void SomeMoreComplexOperation(EntityA entity);
A have a couple of questions about what the best practice would be:
Add()
) 上一篇: 一个控制器在ASP.Net WebAPI中的多种方法
下一篇: C#存储库和服务