⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 database_solution_vs70.atcs

📁 .net samples
💻 ATCS
字号:
<#--
	Visual Studio .Net solution template.
--##>
<#@ Imports
using System;
using System.Text;
using TwoLKit.nTierBuilder.Api.DbDom;
##>
<#@ InstanceMembers
	private IDatabase Database
	{
		get { return (IDatabase)Environment["Database"]; }
	}

	public override bool RewriteExistingFile
	{
		get { return false; }
	}

	public override string RelativeFilePath
	{
		get { return Database.CodeName + ".sln"; }
	}
	
	private bool GenerateWebUI
	{
		get{ return false; }
	}

	private bool GenerateWinUI
	{
		get { return false; }
	}
	
	private bool GenerateTestApp
	{
		get { return !GenerateWinUI; }
	}
	
	private string GetProjectId(string key)
	{
		string value = (string)Environment.Session[key];
		if(null == value)
		{
			value = Guid.NewGuid().ToString("B").ToUpper();
			Environment.Session[key] = value;
		}
		return value;
	}

	private string GetDbProjectId()
	{
		return GetProjectId("VSDbProjectId");
	}

	private string GetWebUIProjectId()
	{
		return GetProjectId("VSWebUIProjectId");
	}
	
	private string GetWinUIProjectId()
	{
		return GetProjectId("VSWinUIProjectId");
	}
	
	private string GetTestAppProjectId()
	{
		return GetProjectId("VSTestAppProjectId");
	}
##>
Microsoft Visual Studio Solution File, Format Version 7.00
<#	if(GenerateWebUI)
	{ ##>
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WinUI", "WinUI\WinUI.vbproj", "<#= GetWebUIProjectId() #>"
EndProject
<#	}
	if(GenerateWinUI)
	{ ##>
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "WebUI", "WebUI\WebUI.vbproj", "<#= GetWinUIProjectId() #>"
EndProject
<#	}
	if(GenerateTestApp)
	{ ##>
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "TestApp", "TestApp\TestApp.vbproj", "<#= GetTestAppProjectId() #>"
EndProject
<#	} ##>	
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "Db", "Db\Db.vbproj", "<#= GetDbProjectId() #>"
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		ConfigName.0 = Debug
		ConfigName.1 = Release
	EndGlobalSection
	GlobalSection(ProjectDependencies) = postSolution
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
<#	if(GenerateWebUI)
	{ ##>
		<#= GetWebUIProjectId() #>.Debug.ActiveCfg = Debug|.NET
		<#= GetWebUIProjectId() #>.Debug.Build.0 = Debug|.NET
		<#= GetWebUIProjectId() #>.Release.ActiveCfg = Release|.NET
		<#= GetWebUIProjectId() #>.Release.Build.0 = Release|.NET
<#	}
	if(GenerateWinUI)
	{ ##>
		<#= GetWinUIProjectId() #>.Debug.ActiveCfg = Debug|.NET
		<#= GetWinUIProjectId() #>.Debug.Build.0 = Debug|.NET
		<#= GetWinUIProjectId() #>.Release.ActiveCfg = Release|.NET
		<#= GetWinUIProjectId() #>.Release.Build.0 = Release|.NET
<#	} 
	if(GenerateTestApp)
	{ ##>
		<#= GetTestAppProjectId() #>.Debug.ActiveCfg = Debug|.NET
		<#= GetTestAppProjectId() #>.Debug.Build.0 = Debug|.NET
		<#= GetTestAppProjectId() #>.Release.ActiveCfg = Release|.NET
		<#= GetTestAppProjectId() #>.Release.Build.0 = Release|.NET
<#	} ##>
		<#= GetDbProjectId() #>.Debug.ActiveCfg = Debug|.NET
		<#= GetDbProjectId() #>.Debug.Build.0 = Debug|.NET
		<#= GetDbProjectId() #>.Release.ActiveCfg = Release|.NET
		<#= GetDbProjectId() #>.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -