#region AgileEAS.NET-generated //------------------------------------------------------------------------------ // AgileEAS.NET应用开发平台,是基于敏捷并行开发思想以及.NET构件技术而开发的一个应用系统快速开发平台,用于帮助中小软件企业 //建立一条适合快速变化的开发团队,以达到节省开发成本、缩短开发时间,快速适应市场变化的目的。 // AgileEAS.NET应用开发平台包含基础类库、资源管理平台、运行容器、开发辅助工具等四大部分,资源管理平台为敏捷并行开发提供了 //设计、实现、测试等开发过程的并行,应用系统的各个业务功能子系统,在系统体系结构设计的过程中被设计成各个原子功能模块,各个子 //功能模块按照业务功能组织成单独的程序集文件,各子系统开发完成后,由AgileEAS.NET资源管理平台进行统一的集成部署。 // // AgileEAS.NET SOA 中间件平台是一套免费的快速开发工具,可以不受限制的用于各种非商业开发之中,商业应用请向作者获取商业授权, //商业授权也是免费的,但是对于非授权的商业应用视为侵权,开发人员可以参考官方网站和博客园等专业网站获取公开的技术资料,也可以向 //AgileEAS.NET官方团队请求技术支持。 // // 官方网站:http://www.smarteas.net // 团队网站:http://www.agilelab.cn //------------------------------------------------------------------------------ // // 此代码由AgileEAS.NET数据模型设计工具生成。 // 运行时版本:4.0.30319.1 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ #endregion using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; using System.Xml.Serialization; using System.ComponentModel; using System.Data; using EAS.Data; using EAS.Data.Access; using EAS.Data.ORM; using EAS.Data.Linq; namespace SOH.Entities { /// /// 实体对象 czyrole(操作员角色关系)。 /// [Serializable()] [DataContract(IsReference=true)] [Table("czyrole","操作员角色关系")] partial class czyrole: DataEntity, IDataEntity { public czyrole() { } protected czyrole(SerializationInfo info, StreamingContext context) : base(info, context) { } #region O/R映射成员 /// /// id 。 /// [Column("id","id"),PrimaryKey,NotNull] [DisplayName("id")] [DataMember] public int id { get; set; } /// /// 操作员ID 。 /// [Column("czyid","操作员ID"),DataSize(6)] [DisplayName("操作员ID")] [DataMember] public string czyid { get; set; } /// /// 角色ID 。 /// [Column("roleid","角色ID")] [DisplayName("角色ID")] [DataMember] public int roleid { get; set; } #endregion #region O/R虚拟属性 #endregion #region 关联枚举 #endregion #region O/R引用实体 private t_czygl m_czy; /// /// 操作员 。 /// [DataMember] [RefEntity("czyid", "操作员", typeof(t_czygl), "czym", false, false)] public t_czygl czy { get { if ((this.m_czy == null && !string.IsNullOrEmpty(this.czyid)) || (this.m_czy!=null && this.m_czy.czym != this.czyid)) { this.m_czy = DataEntity.Lazy(this.czyid); } return this.m_czy; } set { this.m_czy = value; } } [NonSerialized] private Role m_role; /// /// 角色 。 /// [XmlIgnore] [DataMember] [RefEntity("roleid", "角色", typeof(Role), "id", false, true)] public Role role { get { if ((this.m_role == null && !object.Equals(this.roleid,null)) || (this.m_role!=null && this.m_role.id != this.roleid)) { this.m_role = DataEntity.LazyCache(this.roleid); } return this.m_role; } set { this.m_role = value; } } #endregion #region O/R子实体 #endregion } }