ldj/codeSmith/template/WCFdataList.cst

52 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-05-23 16:13:17 +08:00
<%@ CodeTemplate Language="C#" TargetLanguage="Text" Description="This template demonstrates using properties defined in external assemblies." %>
<%@ Property Name="SourceDatabase" Type="SchemaExplorer.DatabaseSchema" Category="Context" Description="Database that the documentation should be based on." %>
<%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Category="Context" Description="The table to use for this sample." %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Import Namespace="SchemaExplorer" %>
<script runat="template">
<!-- #include file="scripts.cs" -->
</script>
/// <summary>
///WCF Data Object
///wcfList CLASS FOR TABLE <%=this.SourceTable.Name%>
///By wm
///on <%= DateTime.Now.ToString("MM/dd/yyyy")%>
/// </summary>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using System.Data;
namespace DeiNiu.wms.Data.Model.Wcf
{
#region <%=getWcfClassName() %>List
[DataContract]
public class <%=getWcfClassName() %>List {
public <%=getWcfClassName() %>List () {
}
[DataMember]
public List<<%=getWcfClassName() %>> list;
[DataMember]
public int pageSize =0;
[DataMember]
public int page=0;
[DataMember]
public int pageCnt = 0;
[DataMember]
public int rows = 0;
}
#endregion
}