光开关屏幕仅由计算字段组成? [英] Lightswitch screen made up of only calcuated fields?
问题描述
是否可以仅由自定义字段组成LS屏幕,而这些自定义字段以编程方式确定了字段的值(相对于基础数据表或查询的行/列)?我遇到了性能问题(使用SQL Azure),所以没有遇到本地SQL 服务器数据库,需要缓存特定表的行,根据该缓存的数据计算结果值,然后显示此计算出的数据.与显示数据绑定控件(网格,行/列等)相比,很好奇.
Is it possible to have a LS screen made up of only custom fields where the value of the field is programatically determined (vs being a row/column of an underlying data table or query)? I've run into perf issues (using SQL Azure) so not a local SQL Server DB and need to cache rows of a specific table, calculate resultant values based on this cached data, and then display this calculated data. Curious how to do that vs displaying databound controls (grid, rows/column, etc).
推荐答案
for how to cretae a blank screen with customs fields check this link http://blogs.msdn.com/b/lightswitch/archive/2011/06/23/tips-and-tricks-for-using-the-screen-designer.aspx
for data use RIA Services, check this link http://lightswitchhelpwebsite.com/Blog/tabid/61/EntryId/52/Using-WCF-RIA-Services-In-LightSwitch-To-Simplify-Your-Application-UI.aspx
这篇关于光开关屏幕仅由计算字段组成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!