如何从ASP.NET页面访问ApplicationDataService? [英] How to access ApplicationDataService from ASP.NET page?
问题描述
我已将ASPX页面集成到Lightswitch应用程序中,以便为我的用户生成简单的报告。我按照列出的说明 http ://social.msdn.microsoft.com/Forums/en-US/lightswitchgeneral/thread/13b2adcf-aacc-49fb-83b8-7c0c70466a85 &
它似乎工作正常。
I have integrated an ASPX page into my Lightswitch application to allow me to generate a simple report for my users. I followed the instruction listed http://social.msdn.microsoft.com/Forums/en-US/lightswitchgeneral/thread/13b2adcf-aacc-49fb-83b8-7c0c70466a85 and it seems to be working fine.
但现在我很难过:如何访问ApplicationDataService类来查询数据实体?我应该使用MEF容器来创建对象吗?
But now I'm stumped: How do I access the ApplicationDataService class to query the data entities? Is there a MEF container that I should be using to create the object?
谢谢
Jay Turpin
Jay Turpin
推荐答案
您可以查看Michael Washington关于将LS应用程序集成到ASP.NET网站的文章:
http://www.codeproject.com/KB/silverlight/DNNThingsForSale.aspx
我认为它应该回答你的问题。
I think it should answer you question.
问候
这篇关于如何从ASP.NET页面访问ApplicationDataService?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!