album.cs

来自「企业内部的短信交流管理平台。 设计详细」· CS 代码 · 共 84 行

CS
84
字号
using System;
using System.Collections;

namespace Com.SMS.Entity
{
	#region Album

	/// <summary>
	/// Album object for NHibernate mapped table 'Album'.
	/// </summary>
	public class Album
	{
		#region Member Variables
		
		protected int _abId;
		protected string _alName;
		protected int _typeId;
		protected int _userId;
		protected string _alFace;

		#endregion

		#region Constructors

		public Album() { }

		public Album( string alName, int typeId, int userId, string alFace )
		{
			this._alName = alName;
			this._typeId = typeId;
			this._userId = userId;
			this._alFace = alFace;
		}

		#endregion

		#region Public Properties

		public int AbId
		{
			get {return _abId;}
			set {_abId = value;}
		}

		public string AlName
		{
			get { return _alName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for AlName", value, value.ToString());
				_alName = value;
			}
		}

		public int TypeId
		{
			get { return _typeId; }
			set { _typeId = value; }
		}

		public int UserId
		{
			get { return _userId; }
			set { _userId = value; }
		}

		public string AlFace
		{
			get { return _alFace; }
			set
			{
				if ( value != null && value.Length > 100)
					throw new ArgumentOutOfRangeException("Invalid value for AlFace", value, value.ToString());
				_alFace = value;
			}
		}

		

		#endregion
	}
	#endregion
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?