service-layer
Should my Service implements transaction & commit method?
Let\'s say I want to do a bulk User update in my UsersController. In my UsersController I do: foreach ($users as $user) {[详细]
2023-03-05 18:25 分类:问答I have an API that returns items, so do I need a Service / Repository, another layer of extraction
I have an API (a DLL) which has various methods that return objects / collections of items. I would like to create a Web Service that would return items to the calling client.[详细]
2023-03-05 06:33 分类:问答WCF / Service Layer / Repository Layer: Returning DTO from Service layer? And creating ViewModel in Controller from the DTO returned
I have a WCF Service, behind the WCF service is a Service layer (http://martinfowler.com/eaaCatalog/serviceLayer.html) and repository layer.[详细]
2023-03-04 20:13 分类:问答DRY-ing ASP.NET MVC actions: ApplicationController or Service?
I\'m writing an ASP.NET MVC 3 app and I\'m finding myself writing this line rather often in my action methods:[详细]
2023-02-23 07:31 分类:问答The responsibilities of my service and repository layer
The other day I asked this question: Should the repository layer return data-transfe开发者_Python百科r-objects (DTO)?[详细]
2023-02-15 21:27 分类:问答Business Layer errors and Service Layer handling - Best way?
We\'re building a large web app that has numerous layers.In order to communicate to the business layer we\'re using a service layer that the web layer calls when data is needed.Unfortunately, it seems[详细]
2023-02-15 12:43 分类:问答Should repositories supply all the data to the services?
What I mean by that is, say I have a method in my repository: Public Function GetCustomerByState(ByVal State As String) As IQueryable(Of Customer)[详细]
2023-02-15 05:50 分类:问答UnitOfWork and Separation of Concerns?
I am using the UnitOfWork/Service Layer/Repository/EF4 w/POCO design in my MVC app. So far I have this:[详细]
2023-02-14 07:51 分类:问答How to pass complex ViewModel to Service Layer in ASP.NET MVC?
Say I have RegisterModel for user registration and some UserService that implementing IUserService public interface IUserService[详细]
2023-02-12 16:27 分类:问答Project Naming Convention Feedback Please
I am creating a ASP.NET MVC 3 application using Entity Framework 4. I am using the Repository/Service Pattern and was looking for feedback.[详细]
2023-02-12 12:08 分类:问答