%@ CodeTemplate Language="C#" ClassName="PageAspx" TargetLanguage="C#" Debug="False" Description="" %> <%@ Property Name="databaseProjectName" Type="System.String" Default="SpSampleDb" Optional="True" Category="Context" Description="" %> <%@ Property Name="moduleName" Type="System.String" Default="Manager" Optional="True" Category="Context" Description="" %> <%@ Property Name="folderName" Type="System.String" Default="System" Optional="True" Category="Context" Description="" %> <%@ Property Name="Theme" Type="System.String" Default="Default" Optional="True" Category="Context" Description="" %> <%@ Property Name="title" Type="System.String" Default="" Optional="True" Category="Context" Description="" %> <% DbEntity db = Template.GetDataBase(databaseProjectName); foreach(Table tb in db.Tables) { OpenResponse(databaseProjectName+"\\WebSite\\"+tb.ModuleName+"\\"+tb.PropertyName+".aspx"); Field pkField = null; foreach(Field fd in tb.Fields) { if( fd.IsPK ) pkField = fd; } %><%%@ Page Language="C#" AutoEventWireup="true" CodeFile="<%=tb.PropertyName%>.aspx.cs" Inherits="<%=moduleName%>_<%=folderName%>_<%=tb.PropertyName%>" %%> <%%@ Register Assembly="WebBase" Namespace="WebBase" TagPrefix="cc1" %%>