需要自定义读写属性和内置的对象数据源提供程序 [英] There is a need for a custom read write property and a built in object data source provider

查看:58
本文介绍了需要自定义读写属性和内置的对象数据源提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据整形非常重要.我的许多复杂性源于必须对数据进行机会化处理,而不是在源头上进行确定性处理.为此编写RIA服务会涉及支持问题的另一个领域,并且会导致很多崩溃 LightSwitch中提供了自动化支持...我想有一种方法可以通过继承现有的RIA服务来简单地扩展,但是在我有限的搜索中没有找到它.

Data shaping is extremely important. A lot of my complexity stems from having to morph the data opportunistically instead of definitively at the source. Writing a RIA service just to do so engages another realm of support issues and collapses a lot automation support present in LightSwitch... I suppose there is a way to simply extend by inheritance an existing RIA service, but haven't found it in my limited search.

(1)应该可以轻松地将读取/写入属性添加到数据源实体.他们的缺席导致仅包含类似功能的各种复杂解决方案.

(1) It should have been possible to easily add read/write properties to data source entities. Their absence leads to vary complex solutions just to include similar functionality.

(2)内置数据提供程序之一应该是对象数据源适配器.我不明白为什么没有提供.我认为它应该是需要的第一个,也许也是唯一的提供者.但是,如果实际上是什么对象的数据 提供程序实现,那么更好的UI支持将是很好.

(2) One of the built in data providers should have been an object data source adapter. I can't understand why one wasn't provided. I would think it should have been the first and perhaps only provider needed. However, if it is in fact what the object data provider implements, then better UI support would be nice.

推荐答案

ServerApplicationContext 应该为您提供所需的内容:

ServerApplicationContext should give you what you need:

http://blogs.msdn.com/b/lightswitch/archive/2012/11/19/a-new-api-for-lightswitch-server-interaction-the-serverapplicationcontext.aspx


这篇关于需要自定义读写属性和内置的对象数据源提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆