.NETにおけるModel層のORM



public class MT_TW_UserInfo
{
    /// <summary>
    ///   
    /// </summary>
    public const string TableName = "T_TW_UserInfo";

    #region private vars
    private	int	_iUserID;
    private	string	_sUserName;
    private	string	_sUserPassword;
    private	int	_iUserRole;
    private	string	_sUserMemo;

    #endregion

    #region property
    public	int	UserID	{set {	_iUserID = value;} get{ return 	_iUserID;}} 
    public	string	UserName	{set {	_sUserName = value;} get{ return 	_sUserName;}} 
    public	string	UserPassword	{set {	_sUserPassword = value;} get{ return 	_sUserPassword;}} 
    public	int	UserRole	{set {	_iUserRole = value;} get{ return 	_iUserRole;}} 
    public	string	UserMemo	{set {	_sUserMemo = value;} get{ return 	_sUserMemo;}} 

    #endregion

    #region      

    /// <summary>
    ///        
    /// </summary>
    public struct FldName
    {
        public const string	UserID = "UserID";
        public const string	UserName = "UserName";
        public const string	UserPassword = "UserPassword";
        public const string	UserRole = "UserRole";
        public const string	UserMemo = "UserMemo";

    }

    #endregion

    #region          

    /// <summary>
    ///       
    /// </summary>
    public struct CNName
    {
        public const string	UserID = "  ID";
        public const string	UserName = "    ";
        public const string	UserPassword = "    ";
        public const string	UserRole = "    ";
        public const string	UserMemo = "    ";

    }

    #endregion

    /// <summary>
    ///     
    /// </summary>
    public MT_TW_UserInfo()
    {
        _iUserID = 0 ;
        _sUserName = "";
        _sUserPassword = "";
        _iUserRole = 0 ;
        _sUserMemo = "";

    }
}