%-- Name: Database Table Properties Author: Paul Welter Description: Create a list of properties from a database table --%> <%@ CodeTemplate Language="C#" TargetLanguage="C#" Debug="False" Encoding="utf-8" Description="添加模块" %> <%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Category="Context" Description="连接的数据库" %> <%@ Property Name="ModuleName" Type="String" Category="Context" Description="模块名称" %> <%@ Property Name="NeedViewModel" Type="Boolean" Category="Context" Default="False" Description="是否需要ViewModel" %> <%@ Property Name="CascadeId" Type="String" Category="" Default="ParentId" Description="级联字段" %> <%@ Property Name="CascadeName" Type="String" Category="" Default="ParentName" Description="级联显示的文字" %> <%@ Map Name="CSharpAlias" Src="System-CSharpAlias" Description="System to C# Type Map" %> <%@ Assembly Name="SchemaExplorer" %> <%@ Import Namespace="SchemaExplorer" %> <%if(NeedViewModel){ %> @model OpenAuth.App.ViewModel.<%=GetModelName()%> <%} else{ %> @model OpenAuth.Domain.<%=GetModelName()%> <%} %> @{ ViewBag.Title = "<%=GetModelName()%>编辑界面"; Layout = null; }