using GDZZ.Core;
using System;
using System.ComponentModel.DataAnnotations;
namespace @Model.NameSpace
{
///
/// @(@Model.BusName)输入参数
///
public class @(@Model.ClassName)Input : PageInputBase
{
@foreach (var column in Model.TableField){
if (@column.ColumnKey != "True"){
@:///
@:/// @column.ColumnComment
@:///
@:public virtual @column.NetType @column.ColumnName { get; set; }
@:
}
}
}
public class Add@(@Model.ClassName)Input : @(@Model.ClassName)Input
{
@foreach (var column in Model.TableField){
if (@column.WhetherRequired == "Y"){
@:///
@:/// @column.ColumnComment
@:///
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
@:public override @column.NetType @column.ColumnName { get; set; }
@:
}
}
}
public class Delete@(@Model.ClassName)Input
{
@foreach (var column in Model.TableField){
if (@column.ColumnKey == "True"){
@:///
@:/// @column.ColumnComment
@:///
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
@:public @column.NetType @column.ColumnName { get; set; }
@:
}
}
}
public class Update@(@Model.ClassName)Input : @(@Model.ClassName)Input
{
@foreach (var column in Model.TableField){
if (@column.ColumnKey == "True"){
@:///
@:/// @column.ColumnComment
@:///
@:[Required(ErrorMessage = "@(@column.ColumnComment)不能为空")]
@:public @column.NetType @column.ColumnName { get; set; }
@:
}
}
}
public class Querye@(@Model.ClassName)Input : Delete@(@Model.ClassName)Input
{
}
}