AbstractProvider.cst 生成数据提供者基类
1
<%--
2
Name:
3
Author:
4
Description:
5
--%>
6
<%@ CodeTemplate Language="C#" ResponseEncoding="UTF-8" TargetLanguage="Text" Src="Helper.cs" Inherits="Helper" Debug="False" Description="Template description here." %>
7![]()
8
<%@ Assembly Name="System.Data" %>
9
<%@ Assembly Name="SchemaExplorer" %>
10
<%@ Import Namespace="System.Data" %>
11
<%@ Import Namespace="SchemaExplorer" %>
12
<%@ Property Name="DataBase" Type="SchemaExplorer.DatabaseSchema" Category="2.数据库对象" Description="当前生成的数据库对象" %>
13
<%@ Property Name="NameSpace" Type="System.String" Default="" Optional="false" Category="1.命名空间" Description="当前生成命名空间" %>
14
<%@ Property Name="AutoExecuteScript" Type="System.Boolean" Default="False" Category="1. 是否自动执行生成后的脚本"
15
Description="是否自动执行生成后的脚本" %>
16
<%@ Property Name="ModuleName" Type="System.String" Default="" Optional="false" Category="" Description="项目名称" %>
17![]()
18![]()
19![]()
20![]()
21
using System;
22
using System.Collections.Generic;
23
using System.Text;
24
using System.Configuration.Provider;
25
using System.Data;
26
using System.Web.Configuration;
27
using System.IO;
28
using System.Configuration;
29![]()
30
namespace <%= NameSpace%>.Framework
31
{
32
/// <summary>
33
/// 表示数据提供者基类。
34
/// </summary>
35
public abstract partial class <%= ModuleName%>Provider : ProviderBase
36
{
37
系统设置
100
101
<%
102
foreach(TableSchema Table in DataBase.Tables)
103
{
104
%>
105
%= Table.Description%
138
<%}%>
139
140
141
}
142![]()
143
}
144![]()
145
<script runat="template">
146
</script>

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

100

101

102

103

104

105

138

139

140

141

142

143

144

145

146
