contents.cs

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

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

namespace Com.SMS.Entity
{
	#region Content

	/// <summary>
	/// Content object for NHibernate mapped table 'Contents'.
	/// </summary>
	public class Content
	{
		#region Member Variables
		
		protected int _conId;
		protected string _content;

		#endregion

		#region Constructors

		public Content() { }

		public Content( string content )
		{
			this._content = content;
		}

		#endregion

		#region Public Properties

		public int ConId
		{
			get {return _conId;}
			set {_conId = value;}
		}

		public string MessageContent
		{
			get { return _content; }
			set
			{
				if ( value != null && value.Length > 140)
					throw new ArgumentOutOfRangeException("Invalid value for Content", value, value.ToString());
				_content = value;
			}
		}

		

		#endregion
	}
	#endregion
}

⌨️ 快捷键说明

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