开发者

What layer are the RIA Services DomainService classes

We're building a new system that will have more than one front-end, where (at least) one of them bing Silverlight.

We decided to use RIA Services as the Silverlight's service facade.

The question is, should we maintain another Service-Layer "behind" the RIA Services domainService classes or should we use it as our main Service-Layer?

Take in considerations that we have other front-ends not developed in Silverlight and will need to consume (for the most part) the same services开发者_如何学Python.


I would recommend using a domain service as a service layer. The data exposed by them can be consumed by any client since you can add OData endpoints.

You can also decide which entities to expose and even define new entities with less or different properties than the ones in your data layer.

This is the approach we're following in one of our projects (mid-sized) and it's been very good.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜