<%@ CodeTemplate Language="C#" TargetLanguage="C#" ResponseEncoding="UTF-8" Description="Generates a very simple business object." %>
<%@ Property Name="View" Type="SchemaExplorer.ViewSchema" Default="" Optional="False" Category="para" Description="" OnChanged="" Editor="" EditorBase="" Serializer="" %>
<%@ Assembly Name="System.Data" %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="SchemaExplorer" %>
using System;
using System.Data;
using System.Collections.Generic;
namespace CYYFCheckupMgr.Model
{
/// <summary>
/// 视图类 <%= View.Name%>
/// 说明 <%=View.Description%>
/// 操作人 yqs
/// <%= DateTime.Now.ToLocalTime() %>
/// </summary>
public class <%=View.Name%>
{
#region Member Variables
/// <summary>
/// 视图名 <%= View.Name%>
/// </summary>
public static string V_NAME="<%= View.Name%>";
<%
foreach(SchemaExplorer.ViewColumnSchema col in View.Columns)
{
%>
/// <summary>
/// <%=col.Description%>
/// 类型: <%=col.NativeType%>
/// 字长: <%=col.Size%>
/// 默认值: <%=col.ExtendedProperties["CS_Default"].Value%>
/// 允空: <%=col.AllowDBNull%>
/// </summary>
public static string <%= col.Name %> = "<%= col.Name %>";
<%}%>
#endregion
}
}
<script runat="template">
// My methods here.
public string getSystem()
{
return "";
}
</script>