调用LightSwitch服务 [英] Calling LightSwitch Services
问题描述
您好
我正在尝试将LS与Workflow Foundation集成。到目前为止,我可以通过LS上的按钮调用WF服务。麻烦的是,有时工作流程需要继续保存数据库中的数据。我可以将数据直接保存到数据库中(使用
ADO或其他东西), 但是我会丢失我在LS中写的所有验证。
I am trying to integrate LS with Workflow Foundation. So far I am able to call a WF service from a button on LS. The trouble is, sometimes the workflows will need to then proceed to saving data in the database. I could save the data directly to the DB (using ADO or something), but I would then lose all the validations that I have writtten in LS.
我已经能够设置对LS Server项目的引用,我可以看到DataWorkSpaces类等。问题是,我将如何"实例化"这个类并使用它。我尝试过新的DataWorkSpace(),但它不起作用。如何从外部(WF)将数据恢复到
LightSwitch?
I have been able to set a reference to the LS Server project and I can see the DataWorkSpaces class etc. The question is, how would I "instantiate" this class and use it. I have tried new DataWorkSpace(), but it doesnt work. How can I get data back into LightSwitch from outside (WF)?
推荐答案
我正在尝试做同样的事情事情。
I'm trying to do the same thing.
请让我知道您是如何从按钮调用服务的!
Please let me know how you called the service from the button!
也许我们可以尝试和协作在... ...
Maybe we can try and collaborate on this...
谢谢
Jonathan
这篇关于调用LightSwitch服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!