日期:2014-05-18 浏览次数:20549 次
public class InfoController
{
#region Create By ZXAutoCode1.0
public InfoController() { }
public InfoController(int id) {_ControllerID=id; }
private int _ControllerID;
/// <summary>
///
/// </summary>
[Column(ColumnName = "ControllerID",PK = true)]
public int ControllerID
{
get { return _ControllerID; }
set { _ControllerID = value; }
}
private string _ControllerName;
/// <summary>
///
/// </summary>
[Required(ErrorMessage = "名称不能为空")]
[Column(ColumnName = "ControllerName")]
public string ControllerName
{
get { return _ControllerName; }
set { _ControllerName = value; }
}
private int _Position;
/// <summary>
///
/// </summary>
[Column(ColumnName = "Position")]
[Required(ErrorMessage = "排序号不能为空")]
public int Position
{
get { return _Position; }
set { _Position = value; }
}
private long _ModuleID;
/// <summary>
///
/// </summary>
[Column(ColumnName = "ModuleID")]
[Required(ErrorMessage = "不能为空")]
public long ModuleID
{
get { return _ModuleID; }
set { _ModuleID = value; }
}
private InfoModule _Module;
public InfoModule Module
{
get { return _Module; }
set { _Module = value; }
}
#endregion
}