📄 addressbooks.cs
字号:
using System;
using System.Collections;
namespace Com.SMS.Entity
{
#region AddressBook
/// <summary>
/// AddressBook object for NHibernate mapped table 'AddressBooks'.
/// </summary>
public class AddressBook
{
#region Member Variables
protected int _addressBookId;
protected int _userId;
protected string _addressBookName;
protected string _bz;
#endregion
#region Constructors
public AddressBook() { }
public AddressBook( int userId, string addressBookName, string bz )
{
this._userId = userId;
this._addressBookName = addressBookName;
this._bz = bz;
}
#endregion
#region Public Properties
public int AddressBookId
{
get {return _addressBookId;}
set {_addressBookId = value;}
}
public int UserId
{
get { return _userId; }
set { _userId = value; }
}
public string AddressBookName
{
get { return _addressBookName; }
set
{
if ( value != null && value.Length > 50)
throw new ArgumentOutOfRangeException("Invalid value for AddressBookName", value, value.ToString());
_addressBookName = value;
}
}
public string Bz
{
get { return _bz; }
set
{
if ( value != null && value.Length > 100)
throw new ArgumentOutOfRangeException("Invalid value for Bz", value, value.ToString());
_bz = value;
}
}
#endregion
}
#endregion
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -