Which layer of the application should contain DTO implementation

后端 未结 6 813
再見小時候
再見小時候 2021-01-31 04:11

Lately I\'ve been hearing a lot about DTOs and how useful they are but I can\'t find a good example of using it in ASP.NET context.

Let\'s say I use three tier architect

6条回答
  •  鱼传尺愫
    2021-01-31 04:54

    I use a project named Shared for such purposes, spesifically to share object with all layers. Regardless of the name, it should be visible by all layers.

提交回复
热议问题