質問

I am currently reading a lot about Design Patterns and I have been watching various Pluralsight videos from their library. Now so far I have learnt the following:

  1. Repository Pattern
  2. Unit of Work Pattern
  3. Abstract Factory Pattern
  4. Reading the awesome "DI in .NET" book

Now I read lot about Services and Service Layers and wanted some advice about the best place to read up and learn about these. I presume this fits into Domain Driven Design and I should start there? The term "Service" just seem to be used widely within IT and it can be confusing the exact meaning.

So my questions is:

  1. What is the Service Layer
  2. Where is the best place to learn about them
役に立ちましたか?

解決

The service layer is the layer which sits between the presentation layer and the data access layer.

The presentation deals with HTTP requests and responses (in a web app) and presentation logic in general (workflow between pages, etc.), and delegates to the service layer for the business, transactional logic that the application uses.

The service layer then delegates to a data access layer to access the database.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top