photos.cs
来自「企业内部的短信交流管理平台。 设计详细」· CS 代码 · 共 84 行
CS
84 行
using System;
using System.Collections;
namespace Com.SMS.Entity
{
#region Photo
/// <summary>
/// Photo object for NHibernate mapped table 'Photos'.
/// </summary>
public class Photo
{
#region Member Variables
protected int _pId;
protected string _pPath;
protected string _pDesc;
protected int _abId;
protected bool _isPublic;
#endregion
#region Constructors
public Photo() { }
public Photo( string pPath, string pDesc, int abId, bool isPublic )
{
this._pPath = pPath;
this._pDesc = pDesc;
this._abId = abId;
this._isPublic = isPublic;
}
#endregion
#region Public Properties
public int PId
{
get {return _pId;}
set {_pId = value;}
}
public string PPath
{
get { return _pPath; }
set
{
if ( value != null && value.Length > 100)
throw new ArgumentOutOfRangeException("Invalid value for PPath", value, value.ToString());
_pPath = value;
}
}
public string PDesc
{
get { return _pDesc; }
set
{
if ( value != null && value.Length > 100)
throw new ArgumentOutOfRangeException("Invalid value for PDesc", value, value.ToString());
_pDesc = value;
}
}
public int AbId
{
get { return _abId; }
set { _abId = value; }
}
public bool IsPublic
{
get { return _isPublic; }
set { _isPublic = value; }
}
#endregion
}
#endregion
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?