标签: lightswitch-2012

如何让所有的女性?

我想得到性别用于计算,例如男性和女性选项在一列中.我想让所有男性或所有女性进行计算.

我有一个"计算属性",它给出了所有项目的列表以及计算.这是代码:

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

    int totalAge = 0;
    int count = 0;

    foreach (InsuranceQuotation i in his.DataWorkspace.ApplicationData.InsuranceQuotations)
    {
        totalAge += i.mAge;
        count++;
    }

    if (count != 0)
    {
        result = (totalAge / count).ToString();
    }

}
Run Code Online (Sandbox Code Playgroud)

如何在此"计算属性"中过滤性别.

c# visual-studio-lightswitch lightswitch-2012 lightswitch-2013

27
推荐指数
2
解决办法
4965
查看次数

如何在Visual Studio 2012 Lightswitch中使用MySQL?

如何在Visual Studio 2012 Lightswitch中使用MySQL?我想将Amazon AWS RDS用于MySQL服务器.我收到错误:无法找到或加载已注册的.Net Framework数据提供程序.

mysql cloud-hosting amazon-rds visual-studio-lightswitch lightswitch-2012

4
推荐指数
1
解决办法
2770
查看次数

如何将Lightswitch 2012应用程序部署为桌面+本地用户连接字符串

在Lightswitch中,可以在同一台计算机上使用本地数据库在桌面上发布应用程序.在Lightswitch 2012中,发布向导会询问有效的用户连接字符串.在Lightswitch 2011中,这更容易,因为这个输入不是必需的.在这种情况下,很容易测试登录以及用户和角色管理.

什么是"有效的用户连接字符串",为什么我现在(与LS11相比)必须输入这个,从哪里获取有关我的正确用户连接字符串的信息?

提前致谢

PS:当然我已经安装了MS SQL Server 2012,不过我又重新安装了它,也是SqllocalDB.但它仍然是一样的.当我发布应用程序时,当我尝试启动它时,它会说:"与数据库通信时出错".
在此输入图像描述

visual-studio-lightswitch lightswitch-2012

2
推荐指数
1
解决办法
4778
查看次数