using (Entities PlatfrmName = new Entities())
{
foreach (string selectedProject in SplitSelectedprojects)
{
var platformId = from platformID in PlatfrmName.AppProjects84
where platformID.ProjectName == selectedProject
select platformID.PlatformId;
var platformName = from platfrmName in PlatfrmName.AppPlatforms84
where platfrmName.PlatformId.ToString() == platformId.ToString()
select platfrmName.PlatformName;
//Get the projects based on the platforms
if (platformName.ToString() == "Base")
BASE += selectedProject + ",";
if (platformName.ToString() == "Windows")
WINDOWS += selectedProject + ",";
if (platformName.ToString() == "Web")
WEB += selectedProject + ",";
if (platformName.ToString() == "Wpf")
WPF += selectedProject + ",";
if (platformName.ToString() == "Silverlight")
SILVERLIGHT += selectedProject + ",";
if (platformName.ToString() == "Mvc")
MVC += selectedProject + ",";
}
}
我希望结果为platformName == Base
,那么应该将该项目添加到 BASE 变量中。当控件到达时 if (platformName.ToString() == "Base")
,我将光标悬停在它上面,它什么也不显示。谁能帮我解决这个问题。