RIA 服务的动态替代方案?
我目前正在使用 RIA 服务在 silverlight 4 中构建 silverlight 业务应用程序,我发现 RIA 服务每天都变得越来越痛苦。
此应用程序中的许多数据库交互并不遵循通常的方式CRUD 模式和一些数据并不“适合”RIA 服务的做事风格。
更重要的是,它不适合我的大脑对 Web 服务的思考方式!
(我认为抽象通常会妨碍您尝试解决的业务问题)
到了这样的程度,代码库中的一大块可怕的内容就是对象上下文和欺骗 ID 的变通方法,以创建某种唯一的密钥等等..
我还想为 rob conery 的大规模交换实体框架(他对抽象、动态类型等的看法与我相同。)
是否有任何使用动态类型和 JSON 的替代方案?
如果没有,我可能不得不自己动手!
I'm building a silverlight line of business application in silverlight 4 using RIA services currently and i'm finding RIA services to be more and more of a pain everyday..
A lot of the database interaction in this application doesn't follow the usual CRUD pattern and some of the data just doesn't "fit" with the RIA services style of doing things..
Even more importantly it doesn't fit the way my brain thinks about web services!
(I think that abstraction often gets in the way of the business problem you're trying to solve)
It's got to a point where a scary chunk of the code base is workarounds for the object context and spoofing ID's to create some kind of unique key etc..
I'd also like to swap out entity framework for rob conery's massive (he thinks the same way as me about abstraction, dynamic typing etc..)
Are there any alternatives which work using dynamic typing and JSON?
If not I may have to roll my own!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您看过 WCF 数据服务吗?
http://msdn.microsoft.com/en-us/data/bb931106.aspx
Have you looked at WCF Data Services?
http://msdn.microsoft.com/en-us/data/bb931106.aspx
您可能还会发现 WCF Web API 更适合您。
http://codebetter. com/glennblock/2010/11/01/wcf-web-apis-http-your-way/#0_undefined,0_
You might also find that WCF Web APIs suits you better.
http://codebetter.com/glennblock/2010/11/01/wcf-web-apis-http-your-way/#0_undefined,0_