【发布时间】:2013-08-01 22:25:44
【问题描述】:
我一直在我的表上创建计算属性,但是当我去编辑代码时(即使使用“编辑方法”链接),我无法编译,因为它说定义声明是 mia。
这是一个错误示例。
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 个在不同的桌子上的项目中工作,但我一生都无法弄清楚有什么区别,以及为什么这个工作有效,而我尝试创建的其他任何工作都没有。
有人知道我在这里缺少什么吗?
【问题讨论】:
标签: visual-studio-lightswitch lightswitch-2012