Visual studio lightswitch Lightswitch计算属性无法编译
我一直在我的表上创建计算属性,但是当我去编辑代码时(甚至使用“edit Method”链接),我无法编译,因为它说定义声明是mia 下面是一个错误示例Visual studio lightswitch Lightswitch计算属性无法编译,visual-studio-lightswitch,lightswitch-2012,Visual Studio Lightswitch,Lightswitch 2012,我一直在我的表上创建计算属性,但是当我去编辑代码时(甚至使用“edit Method”链接),我无法编译,因为它说定义声明是mia 下面是一个错误示例 Error 1 No defining declaration found for implementing declaration of partial method 'LightSwitchApplication.CampaignLevel.Property1_Compute(ref string)' C:\Users\Jason\Docu
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,但我一辈子都不能弄清楚区别是什么,以及为什么这个工作和我试图创建的任何其他工作不工作
有人知道我在这里遗漏了什么吗?我会尝试重新创建属性。特性定义在其他位置(应用程序定义)创建,并传递到此用户代码文件供您参考。如果没有引用,那么以某种方式保存其他文件可能会有问题 可能需要更多的信息才能给出更明确的答案,但这是我首先要尝试的