Lightswitch Computed属性不会编译

问题描述:

我一直在我的表上做计算propeties,但是当我去编辑代码(甚至使用“Edit Method”链接)时,我无法编译,因为它说定义声明是mia。Lightswitch Computed属性不会编译

这里是一个错误的例子。

Error 1 No defining declaration found for implementing declaration of partial method 'LightSwitchApplication.CampaignLevel.Property1_Compute(ref string)' 
C:\Users\Jason\Documents\Visual Studio 2012\Projects\Application1\Application1\Common\UserCode\CampaignLevel.cs 
11 22 Common 

代码后面是空的:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Text; 
using Microsoft.LightSwitch; 
namespace LightSwitchApplication 
{ 
    public partial class CampaignLevel 
    { 

     partial void Property1_Compute(ref string result) 
     { 
      // Set result to the desired field value 

     } 
    } 
} 

我有1,在项目上不同的表的作品,但我不能为我的生活出的差异是什么,为什么那个人可以工作,而任何其他我尝试创造的人都不会。

有没有人知道我在这里失踪?

我会尝试重新创建属性。属性定义在别处创建(应用程序定义),并传递给此用户代码文件供您参考。如果没有参考,那么以某种方式保存其他文件可能存在问题。

可能需要更多信息才能给出更明确的答案,但这是我首先要尝试的。