ConfigTemplet.cst 生成配置
1
<%--
2
Name:
3
Author:
4
Description:
5
--%>
6
<%@ CodeTemplate Language="C#" ResponseEncoding="UTF-8" TargetLanguage="Text" Src="" Inherits="" Debug="False" Description="Template description here." %>
7
<%@ Property Name="SampleStringProperty" Type="System.String" Default="SomeValue" Optional="True" Category="Strings" Description="This is a sample string property." %>
8
<%@ Property Name="SampleBooleanProperty" Type="System.Boolean" Default="True" Optional="False" Category="Booleans" Description="This is a sample boolean property." %>
9
<%@ Assembly Name="System.Data" %>
10
<%@ Import Namespace="System.Data" %>
11
<?xml version="1.0"?>
12
<configuration>
13
<configSections>
14
<sectionGroup name="modules">
15
<section name="projectManager" type="rs.ABC.ProjectManagerSection, ABC.Framework" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>
16
</sectionGroup>
17
18
</configSections>
19
<connectionStrings>
20
<add name="SqlConnection" connectionString="Data Source=wubiyu\SQLEXPRESS;Initial Catalog=test;User ID=sa;Password=20023727"/>
21
</connectionStrings>
22
<modules>
23
<projectManager defaultProvider="SqlProjectProvider">
24
<providers>
25
<add name="SqlProjectProvider" type="rs.ABC.SqlProvider, ABC.Providers" connectionStringName="SqlConnection"/>
26
</providers>
27
</projectManager>
28
</modules>
29
</configuration>
30
<script runat="template">
31![]()
32
</script>
<%-- 2
Name:3
Author: 4
Description: 5
--%>6
<%@ CodeTemplate Language="C#" ResponseEncoding="UTF-8" TargetLanguage="Text" Src="" Inherits="" Debug="False" Description="Template description here." %>7
<%@ Property Name="SampleStringProperty" Type="System.String" Default="SomeValue" Optional="True" Category="Strings" Description="This is a sample string property." %>8
<%@ Property Name="SampleBooleanProperty" Type="System.Boolean" Default="True" Optional="False" Category="Booleans" Description="This is a sample boolean property." %>9
<%@ Assembly Name="System.Data" %>10
<%@ Import Namespace="System.Data" %>11
<?xml version="1.0"?>12
<configuration>13
<configSections>14
<sectionGroup name="modules">15
<section name="projectManager" type="rs.ABC.ProjectManagerSection, ABC.Framework" allowDefinition="MachineToApplication" restartOnExternalChanges="true"/>16
</sectionGroup>17
18
</configSections>19
<connectionStrings>20
<add name="SqlConnection" connectionString="Data Source=wubiyu\SQLEXPRESS;Initial Catalog=test;User ID=sa;Password=20023727"/>21
</connectionStrings>22
<modules>23
<projectManager defaultProvider="SqlProjectProvider">24
<providers>25
<add name="SqlProjectProvider" type="rs.ABC.SqlProvider, ABC.Providers" connectionStringName="SqlConnection"/>26
</providers>27
</projectManager>28
</modules>29
</configuration>30
<script runat="template">31

32
</script>
浙公网安备 33010602011771号