<%@ Template Language="C#" TargetLanguage="C#" Debug="True" Encoding="UTF-8" %> <%@ Assembly Src="..\..\..\Common\Model.cs" %> <%@ Assembly Src="..\..\..\Common\Extensions.cs" %> <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="System.Linq" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.Text.RegularExpressions" %> <%@ Import Namespace="SchemaMapper" %> <%@ Property Name="Entity" Type="SchemaMapper.Entity" %> <%@ Property Name="Namespace" Type="System.String" %> <%-- Safe类名 --%> <% string SafeClassName = Entity.ClassName.ToSafeName(); %> <%-- 描述 --%> <% string Description = Entity.Description; %> <%-- 驼峰形式类名 --%> <% string CamelClassName = SafeClassName.ToCamelCase(); %> @model <%=SafeClassName%>Query @*查询表单*@ <% int i =0; %> <% foreach(Property p in Entity.Properties) { %> <% if( i > 2 ) break; %> <% if( p.IsPrimaryKey.SafeValue() ) continue; %> <% if( Entity.IsHidden(p) ) continue; %> <% if( i < 2 ) {%> <% }else { %> <% } %> <% i++;} %>