|
|
|
using Myshipping.Core;
|
|
|
|
using System;
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
namespace @Model.NameSpace
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// @(@Model.BusName)输入参数
|
|
|
|
/// </summary>
|
|
|
|
public class @(@Model.ClassName)Input
|
|
|
|
{
|
|
|
|
@foreach (var column in Model.TableField){
|
|
|
|
if (@column.ColumnKey != "True"){
|
|
|
|
@:/// <summary>
|
|
|
|
@:/// @column.ColumnComment
|
|
|
|
@:/// </summary>
|
|
|
|
@:public virtual @column.NetType @column.ColumnName { get; set; }
|
|
|
|
@:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// @(@Model.BusName)新增输入参数
|
|
|
|
/// </summary>
|
|
|
|
public class Add@(@Model.ClassName)Input : @(@Model.ClassName)Input
|
|
|
|
{
|
|
|
|
@foreach (var column in Model.TableField){
|
|
|
|
if (@column.WhetherRequired == "Y"){
|
|
|
|
@:/// <summary>
|
|
|
|
@:/// @column.ColumnComment
|
|
|
|
@:/// </summary>
|
|
|
|
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
|
|
|
|
@:public override @column.NetType @column.ColumnName { get; set; }
|
|
|
|
@:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// @(@Model.BusName)修改输入参数
|
|
|
|
/// </summary>
|
|
|
|
public class Update@(@Model.ClassName)Input : @(@Model.ClassName)Input
|
|
|
|
{
|
|
|
|
@foreach (var column in Model.TableField){
|
|
|
|
if (@column.ColumnKey == "True"){
|
|
|
|
@:/// <summary>
|
|
|
|
@:/// @column.ColumnComment
|
|
|
|
@:/// </summary>
|
|
|
|
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
|
|
|
|
@:public @column.NetType @column.ColumnName { get; set; }
|
|
|
|
@:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// @(@Model.BusName)获取(删除)输入参数
|
|
|
|
/// </summary>
|
|
|
|
public class Get@(@Model.ClassName)Input
|
|
|
|
{
|
|
|
|
@foreach (var column in Model.TableField){
|
|
|
|
if (@column.ColumnKey == "True"){
|
|
|
|
@:/// <summary>
|
|
|
|
@:/// @column.ColumnComment
|
|
|
|
@:/// </summary>
|
|
|
|
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
|
|
|
|
@:public @column.NetType @column.ColumnName { get; set; }
|
|
|
|
@:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// @(@Model.BusName)查询输入参数
|
|
|
|
/// </summary>
|
|
|
|
public class Query@(@Model.ClassName)Input : PageInputBase
|
|
|
|
{
|
|
|
|
@foreach (var column in Model.TableField){
|
|
|
|
@:/// <summary>
|
|
|
|
@:/// @column.ColumnComment
|
|
|
|
@:/// </summary>
|
|
|
|
@:public virtual @column.NetType @column.ColumnName { get; set; }
|
|
|
|
@:
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|