model 模型层
using System; namespace MODEL { [Serializable] /// <summary> /// 作者: liuhaitao /// 描述: 实体层 -- Students表映射类. /// 最后修改时间:2013/2/4 9:31:57 /// </summary> public class Students { public Students() { } #region 字段们 protected int _id; protected int _cId; protected Classes _cIdMODEL;//外键实体! protected string _name; protected string _gender; protected bool _isDel; protected DateTime _addTime; #endregion #region 属性们 /// <summary> /// /// </summary> public int Id { set { _id = value; } get { return _id; } } /// <summary> /// /// </summary> public int CId { set { _cId = value; } get { return _cId; } } /// <summary> /// -外键实体 /// </summary> public Classes CIdMODEL { set { _cIdMODEL = value; } get { return _cIdMODEL; } } /// <summary> /// /// </summary> public string Name { set { _name = value; } get { return _name; } } /// <summary> /// /// </summary> public string Gender { set { _gender = value; } get { return _gender; } } /// <summary> /// /// </summary> public bool IsDel { set { _isDel = value; } get { return _isDel; } } /// <summary> /// /// </summary> public DateTime AddTime { set { _addTime = value; } get { return _addTime; } } #endregion } }