AbstractProvider.cst 生成数据提供者基类

  1<%-- 
  2Name:
  3Author: 
  4Description: 
  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
 21using System;
 22using System.Collections.Generic;
 23using System.Text;
 24using System.Configuration.Provider;
 25using System.Data;
 26using System.Web.Configuration;
 27using System.IO;
 28using System.Configuration;
 29
 30namespace <%= 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>
posted @ 2007-07-05 19:43  吴碧宇  阅读(498)  评论(1编辑  收藏  举报