开发者

Best practices for Domain Service classes in RIA Silverlight projects

I would like to ask whether or not is a good practice, to hold the CRUD operations for business objects, in 开发者_开发百科a single domain service class. Should we provide a domain service class for each BO?

ProductDomainService.cs CustomerDomainService.cs ...

or a single

BusinessObjectDomainService.cs


I went with a single domain object beause my model is not that complex. I would think it might be better to cluster the domain services together ie user services logging services. That kind of logical clumping would be better than 1 for each business object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜