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

📄 database_project_testapp.atcs

📁 .net samples
💻 ATCS
字号:
<#--
	Visual Studio .Net TestApp project template.
--##>
<#@ Imports
using System;
using System.IO;
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 "TestApp.vbproj"; }
	}
	
	private string GetNamespace()
	{
		return SharedUtils.GetDbTierNamespace(Database);
	}
	
	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 GetTestAppProjectId()
	{
		return GetProjectId("VSTestAppProjectId");
	}

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

	private string GetSystemHintPath(string assemblyFile)
	{
		string frameworkDir = Path.GetDirectoryName(typeof(string).Assembly.Location);
		return Path.Combine(frameworkDir, assemblyFile);
	}
##>
<VisualStudioProject>
    <VisualBasic
        ProjectType = "Local"
        ProductVersion = "7.0.9466"
        SchemaVersion = "1.0"
        ProjectGuid = "<#= GetTestAppProjectId() #>"
    >
        <Build>
            <Settings
				ApplicationIcon = ""
				AssemblyKeyContainerName = ""
				AssemblyName = "<#= GetNamespace() #>.TestApp"
				AssemblyOriginatorKeyFile = ""
				AssemblyOriginatorKeyMode = "None"
				DefaultClientScript = "JScript"
				DefaultHTMLPageLayout = "Grid"
				DefaultTargetSchema = "IE50"
				DelaySign = "false"
				OutputType = "WinExe"
				RootNamespace = "<#= GetNamespace() #>.TestApp"
				OptionCompare = "Binary"
				OptionExplicit = "On"
				OptionStrict = "Off"
				StartupObject = "<#= GetNamespace() #>.TestApp.TestForm"
			>
                <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
                <Config
                    Name = "Release"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "false"
                    DefineTrace = "true"
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    Optimize = "true"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
            </Settings>
            <References>
				<Reference
					Name = "System"
					AssemblyName = "System"
				/>
				<Reference
					Name = "System.Data"
					AssemblyName = "System.Data"
				/>
				<Reference
					Name = "System.Drawing"
					AssemblyName = "System.Drawing"
				/>
				<Reference
					Name = "System.Windows.Forms"
					AssemblyName = "System.Windows.Forms"
				/>
				<Reference
					Name = "System.XML"
					AssemblyName = "System.XML"
				/>
				<Reference
					Name = "Db"
					Project = "<#= GetDbProjectId() #>"
					Package = "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}"
				/>
            </References>
			<Imports>
				<Import Namespace = "Microsoft.VisualBasic" />
				<Import Namespace = "System" />
				<Import Namespace = "System.Data" />
				<Import Namespace = "System.Collections" />
			</Imports>
        </Build>
        <Files>
            <Include>
                <File
                    RelPath = "TestForm.vb"
                    SubType = "Code"
                    BuildAction = "Compile"
                />
            </Include>
        </Files>
    </VisualBasic>
</VisualStudioProject>

⌨️ 快捷键说明

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