//------------------------------------------------------------------------------
// <auto-generated>
//    此代码是根据模板生成的。
//
//    手动更改此文件可能会导致应用程序中发生异常行为。
//    如果重新生成代码，则将覆盖对此文件的手动更改。
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Data.EntityClient;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;

[assembly: EdmSchemaAttribute()]
#region EDM 关系源元数据

[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysDepartment), "SysDepartment1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysDepartment), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysDepartment), "SysPerson", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysPerson), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysField), "SysField1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysField), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysMenu), "SysMenu1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysMenu), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysMenu), "SysMenuSysRoleSysOperation", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysMenuSysRoleSysOperation), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysOperation), "SysMenuSysRoleSysOperation", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysMenuSysRoleSysOperation), true)]
[assembly: EdmRelationshipAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(Langben.DAL.SysRole), "SysMenuSysRoleSysOperation", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysMenuSysRoleSysOperation), true)]
[assembly: EdmRelationshipAttribute("SysModel", "SysMenuSysOperation", "SysMenu", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysMenu), "SysOperation", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysOperation))]
[assembly: EdmRelationshipAttribute("SysModel", "SysRoleSysPerson", "SysPerson", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysPerson), "SysRole", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(Langben.DAL.SysRole))]

#endregion

namespace Langben.DAL
{
    #region 上下文
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    public partial class SysEntities : ObjectContext
    {
        #region 构造函数
    
        /// <summary>
        /// 请使用应用程序配置文件的“SysEntities”部分中的连接字符串初始化新 SysEntities 对象。
        /// </summary>
        public SysEntities() : base("name=SysEntities", "SysEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// 初始化新的 SysEntities 对象。
        /// </summary>
        public SysEntities(string connectionString) : base(connectionString, "SysEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// 初始化新的 SysEntities 对象。
        /// </summary>
        public SysEntities(EntityConnection connection) : base(connection, "SysEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        #endregion
    
        #region 分部方法
    
        partial void OnContextCreated();
    
        #endregion
    
        #region ObjectSet 属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<FileUploader> FileUploader
        {
            get
            {
                if ((_FileUploader == null))
                {
                    _FileUploader = base.CreateObjectSet<FileUploader>("FileUploader");
                }
                return _FileUploader;
            }
        }
        private ObjectSet<FileUploader> _FileUploader;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysDepartment> SysDepartment
        {
            get
            {
                if ((_SysDepartment == null))
                {
                    _SysDepartment = base.CreateObjectSet<SysDepartment>("SysDepartment");
                }
                return _SysDepartment;
            }
        }
        private ObjectSet<SysDepartment> _SysDepartment;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysException> SysException
        {
            get
            {
                if ((_SysException == null))
                {
                    _SysException = base.CreateObjectSet<SysException>("SysException");
                }
                return _SysException;
            }
        }
        private ObjectSet<SysException> _SysException;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysField> SysField
        {
            get
            {
                if ((_SysField == null))
                {
                    _SysField = base.CreateObjectSet<SysField>("SysField");
                }
                return _SysField;
            }
        }
        private ObjectSet<SysField> _SysField;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysLog> SysLog
        {
            get
            {
                if ((_SysLog == null))
                {
                    _SysLog = base.CreateObjectSet<SysLog>("SysLog");
                }
                return _SysLog;
            }
        }
        private ObjectSet<SysLog> _SysLog;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysMenu> SysMenu
        {
            get
            {
                if ((_SysMenu == null))
                {
                    _SysMenu = base.CreateObjectSet<SysMenu>("SysMenu");
                }
                return _SysMenu;
            }
        }
        private ObjectSet<SysMenu> _SysMenu;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysMenuSysRoleSysOperation> SysMenuSysRoleSysOperation
        {
            get
            {
                if ((_SysMenuSysRoleSysOperation == null))
                {
                    _SysMenuSysRoleSysOperation = base.CreateObjectSet<SysMenuSysRoleSysOperation>("SysMenuSysRoleSysOperation");
                }
                return _SysMenuSysRoleSysOperation;
            }
        }
        private ObjectSet<SysMenuSysRoleSysOperation> _SysMenuSysRoleSysOperation;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysOperation> SysOperation
        {
            get
            {
                if ((_SysOperation == null))
                {
                    _SysOperation = base.CreateObjectSet<SysOperation>("SysOperation");
                }
                return _SysOperation;
            }
        }
        private ObjectSet<SysOperation> _SysOperation;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysPerson> SysPerson
        {
            get
            {
                if ((_SysPerson == null))
                {
                    _SysPerson = base.CreateObjectSet<SysPerson>("SysPerson");
                }
                return _SysPerson;
            }
        }
        private ObjectSet<SysPerson> _SysPerson;
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        public ObjectSet<SysRole> SysRole
        {
            get
            {
                if ((_SysRole == null))
                {
                    _SysRole = base.CreateObjectSet<SysRole>("SysRole");
                }
                return _SysRole;
            }
        }
        private ObjectSet<SysRole> _SysRole;

        #endregion

        #region AddTo 方法
    
        /// <summary>
        /// 用于向 FileUploader EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToFileUploader(FileUploader fileUploader)
        {
            base.AddObject("FileUploader", fileUploader);
        }
    
        /// <summary>
        /// 用于向 SysDepartment EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysDepartment(SysDepartment sysDepartment)
        {
            base.AddObject("SysDepartment", sysDepartment);
        }
    
        /// <summary>
        /// 用于向 SysException EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysException(SysException sysException)
        {
            base.AddObject("SysException", sysException);
        }
    
        /// <summary>
        /// 用于向 SysField EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysField(SysField sysField)
        {
            base.AddObject("SysField", sysField);
        }
    
        /// <summary>
        /// 用于向 SysLog EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysLog(SysLog sysLog)
        {
            base.AddObject("SysLog", sysLog);
        }
    
        /// <summary>
        /// 用于向 SysMenu EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysMenu(SysMenu sysMenu)
        {
            base.AddObject("SysMenu", sysMenu);
        }
    
        /// <summary>
        /// 用于向 SysMenuSysRoleSysOperation EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysMenuSysRoleSysOperation(SysMenuSysRoleSysOperation sysMenuSysRoleSysOperation)
        {
            base.AddObject("SysMenuSysRoleSysOperation", sysMenuSysRoleSysOperation);
        }
    
        /// <summary>
        /// 用于向 SysOperation EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysOperation(SysOperation sysOperation)
        {
            base.AddObject("SysOperation", sysOperation);
        }
    
        /// <summary>
        /// 用于向 SysPerson EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysPerson(SysPerson sysPerson)
        {
            base.AddObject("SysPerson", sysPerson);
        }
    
        /// <summary>
        /// 用于向 SysRole EntitySet 添加新对象的方法，已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
        /// </summary>
        public void AddToSysRole(SysRole sysRole)
        {
            base.AddObject("SysRole", sysRole);
        }

        #endregion

    }

    #endregion

    #region 实体
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="FileUploader")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class FileUploader : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 FileUploader 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static FileUploader CreateFileUploader(global::System.String id)
        {
            FileUploader fileUploader = new FileUploader();
            fileUploader.Id = id;
            return fileUploader;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Path
        {
            get
            {
                return _Path;
            }
            set
            {
                OnPathChanging(value);
                ReportPropertyChanging("Path");
                _Path = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Path");
                OnPathChanged();
            }
        }
        private global::System.String _Path;
        partial void OnPathChanging(global::System.String value);
        partial void OnPathChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FullPath
        {
            get
            {
                return _FullPath;
            }
            set
            {
                OnFullPathChanging(value);
                ReportPropertyChanging("FullPath");
                _FullPath = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("FullPath");
                OnFullPathChanged();
            }
        }
        private global::System.String _FullPath;
        partial void OnFullPathChanging(global::System.String value);
        partial void OnFullPathChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Suffix
        {
            get
            {
                return _Suffix;
            }
            set
            {
                OnSuffixChanging(value);
                ReportPropertyChanging("Suffix");
                _Suffix = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Suffix");
                OnSuffixChanged();
            }
        }
        private global::System.String _Suffix;
        partial void OnSuffixChanging(global::System.String value);
        partial void OnSuffixChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Size
        {
            get
            {
                return _Size;
            }
            set
            {
                OnSizeChanging(value);
                ReportPropertyChanging("Size");
                _Size = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Size");
                OnSizeChanged();
            }
        }
        private Nullable<global::System.Int32> _Size;
        partial void OnSizeChanging(Nullable<global::System.Int32> value);
        partial void OnSizeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();

        #endregion

    
    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysDepartment")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysDepartment : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysDepartment 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="name">Name 属性的初始值。</param>
        public static SysDepartment CreateSysDepartment(global::System.String id, global::System.String name)
        {
            SysDepartment sysDepartment = new SysDepartment();
            sysDepartment.Id = id;
            sysDepartment.Name = name;
            return sysDepartment;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ParentId
        {
            get
            {
                return _ParentId;
            }
            set
            {
                OnParentIdChanging(value);
                ReportPropertyChanging("ParentId");
                _ParentId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("ParentId");
                OnParentIdChanged();
            }
        }
        private global::System.String _ParentId;
        partial void OnParentIdChanging(global::System.String value);
        partial void OnParentIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Address
        {
            get
            {
                return _Address;
            }
            set
            {
                OnAddressChanging(value);
                ReportPropertyChanging("Address");
                _Address = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Address");
                OnAddressChanged();
            }
        }
        private global::System.String _Address;
        partial void OnAddressChanging(global::System.String value);
        partial void OnAddressChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Sort
        {
            get
            {
                return _Sort;
            }
            set
            {
                OnSortChanging(value);
                ReportPropertyChanging("Sort");
                _Sort = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Sort");
                OnSortChanged();
            }
        }
        private Nullable<global::System.Int32> _Sort;
        partial void OnSortChanging(Nullable<global::System.Int32> value);
        partial void OnSortChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateTime
        {
            get
            {
                return _UpdateTime;
            }
            set
            {
                OnUpdateTimeChanging(value);
                ReportPropertyChanging("UpdateTime");
                _UpdateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateTime");
                OnUpdateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateTime;
        partial void OnUpdateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UpdatePerson
        {
            get
            {
                return _UpdatePerson;
            }
            set
            {
                OnUpdatePersonChanging(value);
                ReportPropertyChanging("UpdatePerson");
                _UpdatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("UpdatePerson");
                OnUpdatePersonChanged();
            }
        }
        private global::System.String _UpdatePerson;
        partial void OnUpdatePersonChanging(global::System.String value);
        partial void OnUpdatePersonChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment1")]
        public EntityCollection<SysDepartment> SysDepartment1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment1", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment")]
        public SysDepartment SysDepartment2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysDepartment> SysDepartment2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysDepartment>("SysModel.FK_SYSDEPAR_REFERENCE_SYSDEPAR", "SysDepartment", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysPerson")]
        public EntityCollection<SysPerson> SysPerson
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysPerson>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysPerson");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysPerson>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysPerson", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysException")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysException : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysException 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static SysException CreateSysException(global::System.String id)
        {
            SysException sysException = new SysException();
            sysException.Id = id;
            return sysException;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LeiXing
        {
            get
            {
                return _LeiXing;
            }
            set
            {
                OnLeiXingChanging(value);
                ReportPropertyChanging("LeiXing");
                _LeiXing = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("LeiXing");
                OnLeiXingChanged();
            }
        }
        private global::System.String _LeiXing;
        partial void OnLeiXingChanging(global::System.String value);
        partial void OnLeiXingChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Message
        {
            get
            {
                return _Message;
            }
            set
            {
                OnMessageChanging(value);
                ReportPropertyChanging("Message");
                _Message = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Message");
                OnMessageChanged();
            }
        }
        private global::System.String _Message;
        partial void OnMessageChanging(global::System.String value);
        partial void OnMessageChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Result
        {
            get
            {
                return _Result;
            }
            set
            {
                OnResultChanging(value);
                ReportPropertyChanging("Result");
                _Result = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Result");
                OnResultChanged();
            }
        }
        private global::System.String _Result;
        partial void OnResultChanging(global::System.String value);
        partial void OnResultChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();

        #endregion

    
    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysField")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysField : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysField 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="myTexts">MyTexts 属性的初始值。</param>
        public static SysField CreateSysField(global::System.String id, global::System.String myTexts)
        {
            SysField sysField = new SysField();
            sysField.Id = id;
            sysField.MyTexts = myTexts;
            return sysField;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String MyTexts
        {
            get
            {
                return _MyTexts;
            }
            set
            {
                OnMyTextsChanging(value);
                ReportPropertyChanging("MyTexts");
                _MyTexts = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("MyTexts");
                OnMyTextsChanged();
            }
        }
        private global::System.String _MyTexts;
        partial void OnMyTextsChanging(global::System.String value);
        partial void OnMyTextsChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ParentId
        {
            get
            {
                return _ParentId;
            }
            set
            {
                OnParentIdChanging(value);
                ReportPropertyChanging("ParentId");
                _ParentId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("ParentId");
                OnParentIdChanged();
            }
        }
        private global::System.String _ParentId;
        partial void OnParentIdChanging(global::System.String value);
        partial void OnParentIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MyTables
        {
            get
            {
                return _MyTables;
            }
            set
            {
                OnMyTablesChanging(value);
                ReportPropertyChanging("MyTables");
                _MyTables = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("MyTables");
                OnMyTablesChanged();
            }
        }
        private global::System.String _MyTables;
        partial void OnMyTablesChanging(global::System.String value);
        partial void OnMyTablesChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MyColums
        {
            get
            {
                return _MyColums;
            }
            set
            {
                OnMyColumsChanging(value);
                ReportPropertyChanging("MyColums");
                _MyColums = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("MyColums");
                OnMyColumsChanged();
            }
        }
        private global::System.String _MyColums;
        partial void OnMyColumsChanging(global::System.String value);
        partial void OnMyColumsChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Sort
        {
            get
            {
                return _Sort;
            }
            set
            {
                OnSortChanging(value);
                ReportPropertyChanging("Sort");
                _Sort = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Sort");
                OnSortChanged();
            }
        }
        private Nullable<global::System.Int32> _Sort;
        partial void OnSortChanging(Nullable<global::System.Int32> value);
        partial void OnSortChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateTime
        {
            get
            {
                return _UpdateTime;
            }
            set
            {
                OnUpdateTimeChanging(value);
                ReportPropertyChanging("UpdateTime");
                _UpdateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateTime");
                OnUpdateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateTime;
        partial void OnUpdateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UpdatePerson
        {
            get
            {
                return _UpdatePerson;
            }
            set
            {
                OnUpdatePersonChanging(value);
                ReportPropertyChanging("UpdatePerson");
                _UpdatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("UpdatePerson");
                OnUpdatePersonChanged();
            }
        }
        private global::System.String _UpdatePerson;
        partial void OnUpdatePersonChanging(global::System.String value);
        partial void OnUpdatePersonChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField1")]
        public EntityCollection<SysField> SysField1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField1", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField")]
        public SysField SysField2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysField> SysField2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysField>("SysModel.FK_SYSFIELD_REFERENCE_SYSFIELD", "SysField", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysLog")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysLog : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysLog 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static SysLog CreateSysLog(global::System.String id)
        {
            SysLog sysLog = new SysLog();
            sysLog.Id = id;
            return sysLog;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PersonId
        {
            get
            {
                return _PersonId;
            }
            set
            {
                OnPersonIdChanging(value);
                ReportPropertyChanging("PersonId");
                _PersonId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("PersonId");
                OnPersonIdChanged();
            }
        }
        private global::System.String _PersonId;
        partial void OnPersonIdChanging(global::System.String value);
        partial void OnPersonIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Message
        {
            get
            {
                return _Message;
            }
            set
            {
                OnMessageChanging(value);
                ReportPropertyChanging("Message");
                _Message = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Message");
                OnMessageChanged();
            }
        }
        private global::System.String _Message;
        partial void OnMessageChanging(global::System.String value);
        partial void OnMessageChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Result
        {
            get
            {
                return _Result;
            }
            set
            {
                OnResultChanging(value);
                ReportPropertyChanging("Result");
                _Result = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Result");
                OnResultChanged();
            }
        }
        private global::System.String _Result;
        partial void OnResultChanging(global::System.String value);
        partial void OnResultChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MenuId
        {
            get
            {
                return _MenuId;
            }
            set
            {
                OnMenuIdChanging(value);
                ReportPropertyChanging("MenuId");
                _MenuId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("MenuId");
                OnMenuIdChanged();
            }
        }
        private global::System.String _MenuId;
        partial void OnMenuIdChanging(global::System.String value);
        partial void OnMenuIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Ip
        {
            get
            {
                return _Ip;
            }
            set
            {
                OnIpChanging(value);
                ReportPropertyChanging("Ip");
                _Ip = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Ip");
                OnIpChanged();
            }
        }
        private global::System.String _Ip;
        partial void OnIpChanging(global::System.String value);
        partial void OnIpChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();

        #endregion

    
    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysMenu")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysMenu : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysMenu 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="name">Name 属性的初始值。</param>
        public static SysMenu CreateSysMenu(global::System.String id, global::System.String name)
        {
            SysMenu sysMenu = new SysMenu();
            sysMenu.Id = id;
            sysMenu.Name = name;
            return sysMenu;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ParentId
        {
            get
            {
                return _ParentId;
            }
            set
            {
                OnParentIdChanging(value);
                ReportPropertyChanging("ParentId");
                _ParentId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("ParentId");
                OnParentIdChanged();
            }
        }
        private global::System.String _ParentId;
        partial void OnParentIdChanging(global::System.String value);
        partial void OnParentIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Url
        {
            get
            {
                return _Url;
            }
            set
            {
                OnUrlChanging(value);
                ReportPropertyChanging("Url");
                _Url = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Url");
                OnUrlChanged();
            }
        }
        private global::System.String _Url;
        partial void OnUrlChanging(global::System.String value);
        partial void OnUrlChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Iconic
        {
            get
            {
                return _Iconic;
            }
            set
            {
                OnIconicChanging(value);
                ReportPropertyChanging("Iconic");
                _Iconic = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Iconic");
                OnIconicChanged();
            }
        }
        private global::System.String _Iconic;
        partial void OnIconicChanging(global::System.String value);
        partial void OnIconicChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Sort
        {
            get
            {
                return _Sort;
            }
            set
            {
                OnSortChanging(value);
                ReportPropertyChanging("Sort");
                _Sort = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Sort");
                OnSortChanged();
            }
        }
        private Nullable<global::System.Int32> _Sort;
        partial void OnSortChanging(Nullable<global::System.Int32> value);
        partial void OnSortChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateTime
        {
            get
            {
                return _UpdateTime;
            }
            set
            {
                OnUpdateTimeChanging(value);
                ReportPropertyChanging("UpdateTime");
                _UpdateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateTime");
                OnUpdateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateTime;
        partial void OnUpdateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UpdatePerson
        {
            get
            {
                return _UpdatePerson;
            }
            set
            {
                OnUpdatePersonChanging(value);
                ReportPropertyChanging("UpdatePerson");
                _UpdatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("UpdatePerson");
                OnUpdatePersonChanged();
            }
        }
        private global::System.String _UpdatePerson;
        partial void OnUpdatePersonChanging(global::System.String value);
        partial void OnUpdatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IsLeaf
        {
            get
            {
                return _IsLeaf;
            }
            set
            {
                OnIsLeafChanging(value);
                ReportPropertyChanging("IsLeaf");
                _IsLeaf = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("IsLeaf");
                OnIsLeafChanged();
            }
        }
        private global::System.String _IsLeaf;
        partial void OnIsLeafChanging(global::System.String value);
        partial void OnIsLeafChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu1")]
        public EntityCollection<SysMenu> SysMenu1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu1", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu")]
        public SysMenu SysMenu2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysMenu> SysMenu2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysMenu>("SysModel.FK_SYSMENU_REFERENCE_SYSMENU", "SysMenu", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenuSysRoleSysOperation")]
        public EntityCollection<SysMenuSysRoleSysOperation> SysMenuSysRoleSysOperation
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenuSysRoleSysOperation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenuSysRoleSysOperation", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "SysMenuSysOperation", "SysOperation")]
        public EntityCollection<SysOperation> SysOperation
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysOperation>("SysModel.SysMenuSysOperation", "SysOperation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysOperation>("SysModel.SysMenuSysOperation", "SysOperation", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysMenuSysRoleSysOperation")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysMenuSysRoleSysOperation : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysMenuSysRoleSysOperation 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static SysMenuSysRoleSysOperation CreateSysMenuSysRoleSysOperation(global::System.String id)
        {
            SysMenuSysRoleSysOperation sysMenuSysRoleSysOperation = new SysMenuSysRoleSysOperation();
            sysMenuSysRoleSysOperation.Id = id;
            return sysMenuSysRoleSysOperation;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SysMenuId
        {
            get
            {
                return _SysMenuId;
            }
            set
            {
                OnSysMenuIdChanging(value);
                ReportPropertyChanging("SysMenuId");
                _SysMenuId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SysMenuId");
                OnSysMenuIdChanged();
            }
        }
        private global::System.String _SysMenuId;
        partial void OnSysMenuIdChanging(global::System.String value);
        partial void OnSysMenuIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SysOperationId
        {
            get
            {
                return _SysOperationId;
            }
            set
            {
                OnSysOperationIdChanging(value);
                ReportPropertyChanging("SysOperationId");
                _SysOperationId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SysOperationId");
                OnSysOperationIdChanged();
            }
        }
        private global::System.String _SysOperationId;
        partial void OnSysOperationIdChanging(global::System.String value);
        partial void OnSysOperationIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SysRoleId
        {
            get
            {
                return _SysRoleId;
            }
            set
            {
                OnSysRoleIdChanging(value);
                ReportPropertyChanging("SysRoleId");
                _SysRoleId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SysRoleId");
                OnSysRoleIdChanged();
            }
        }
        private global::System.String _SysRoleId;
        partial void OnSysRoleIdChanging(global::System.String value);
        partial void OnSysRoleIdChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu")]
        public SysMenu SysMenu
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysMenu> SysMenuReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysMenu>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysMenu>("SysModel.FK_SYSMENUS_REFERENCE_SYSMENU2", "SysMenu", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation")]
        public SysOperation SysOperation
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysOperation> SysOperationReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysOperation", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole")]
        public SysRole SysRole
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysRole>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysRole>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysRole> SysRoleReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysRole>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysRole>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysRole", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysOperation")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysOperation : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysOperation 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        public static SysOperation CreateSysOperation(global::System.String id)
        {
            SysOperation sysOperation = new SysOperation();
            sysOperation.Id = id;
            return sysOperation;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Function
        {
            get
            {
                return _Function;
            }
            set
            {
                OnFunctionChanging(value);
                ReportPropertyChanging("Function");
                _Function = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Function");
                OnFunctionChanged();
            }
        }
        private global::System.String _Function;
        partial void OnFunctionChanging(global::System.String value);
        partial void OnFunctionChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Iconic
        {
            get
            {
                return _Iconic;
            }
            set
            {
                OnIconicChanging(value);
                ReportPropertyChanging("Iconic");
                _Iconic = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Iconic");
                OnIconicChanged();
            }
        }
        private global::System.String _Iconic;
        partial void OnIconicChanging(global::System.String value);
        partial void OnIconicChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Sort
        {
            get
            {
                return _Sort;
            }
            set
            {
                OnSortChanging(value);
                ReportPropertyChanging("Sort");
                _Sort = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("Sort");
                OnSortChanged();
            }
        }
        private Nullable<global::System.Int32> _Sort;
        partial void OnSortChanging(Nullable<global::System.Int32> value);
        partial void OnSortChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysMenuSysRoleSysOperation")]
        public EntityCollection<SysMenuSysRoleSysOperation> SysMenuSysRoleSysOperation
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysMenuSysRoleSysOperation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSOPERA2", "SysMenuSysRoleSysOperation", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "SysMenuSysOperation", "SysMenu")]
        public EntityCollection<SysMenu> SysMenu
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysMenu>("SysModel.SysMenuSysOperation", "SysMenu");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysMenu>("SysModel.SysMenuSysOperation", "SysMenu", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysPerson")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysPerson : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysPerson 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="name">Name 属性的初始值。</param>
        /// <param name="password">Password 属性的初始值。</param>
        public static SysPerson CreateSysPerson(global::System.String id, global::System.String name, global::System.String password)
        {
            SysPerson sysPerson = new SysPerson();
            sysPerson.Id = id;
            sysPerson.Name = name;
            sysPerson.Password = password;
            return sysPerson;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MyName
        {
            get
            {
                return _MyName;
            }
            set
            {
                OnMyNameChanging(value);
                ReportPropertyChanging("MyName");
                _MyName = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("MyName");
                OnMyNameChanged();
            }
        }
        private global::System.String _MyName;
        partial void OnMyNameChanging(global::System.String value);
        partial void OnMyNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Password
        {
            get
            {
                return _Password;
            }
            set
            {
                OnPasswordChanging(value);
                ReportPropertyChanging("Password");
                _Password = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Password");
                OnPasswordChanged();
            }
        }
        private global::System.String _Password;
        partial void OnPasswordChanging(global::System.String value);
        partial void OnPasswordChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SurePassword
        {
            get
            {
                return _SurePassword;
            }
            set
            {
                OnSurePasswordChanging(value);
                ReportPropertyChanging("SurePassword");
                _SurePassword = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SurePassword");
                OnSurePasswordChanged();
            }
        }
        private global::System.String _SurePassword;
        partial void OnSurePasswordChanging(global::System.String value);
        partial void OnSurePasswordChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sex
        {
            get
            {
                return _Sex;
            }
            set
            {
                OnSexChanging(value);
                ReportPropertyChanging("Sex");
                _Sex = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Sex");
                OnSexChanged();
            }
        }
        private global::System.String _Sex;
        partial void OnSexChanging(global::System.String value);
        partial void OnSexChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SysDepartmentId
        {
            get
            {
                return _SysDepartmentId;
            }
            set
            {
                OnSysDepartmentIdChanging(value);
                ReportPropertyChanging("SysDepartmentId");
                _SysDepartmentId = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("SysDepartmentId");
                OnSysDepartmentIdChanged();
            }
        }
        private global::System.String _SysDepartmentId;
        partial void OnSysDepartmentIdChanging(global::System.String value);
        partial void OnSysDepartmentIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Position
        {
            get
            {
                return _Position;
            }
            set
            {
                OnPositionChanging(value);
                ReportPropertyChanging("Position");
                _Position = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Position");
                OnPositionChanged();
            }
        }
        private global::System.String _Position;
        partial void OnPositionChanging(global::System.String value);
        partial void OnPositionChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MobilePhoneNumber
        {
            get
            {
                return _MobilePhoneNumber;
            }
            set
            {
                OnMobilePhoneNumberChanging(value);
                ReportPropertyChanging("MobilePhoneNumber");
                _MobilePhoneNumber = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("MobilePhoneNumber");
                OnMobilePhoneNumberChanged();
            }
        }
        private global::System.String _MobilePhoneNumber;
        partial void OnMobilePhoneNumberChanging(global::System.String value);
        partial void OnMobilePhoneNumberChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PhoneNumber
        {
            get
            {
                return _PhoneNumber;
            }
            set
            {
                OnPhoneNumberChanging(value);
                ReportPropertyChanging("PhoneNumber");
                _PhoneNumber = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("PhoneNumber");
                OnPhoneNumberChanged();
            }
        }
        private global::System.String _PhoneNumber;
        partial void OnPhoneNumberChanging(global::System.String value);
        partial void OnPhoneNumberChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Province
        {
            get
            {
                return _Province;
            }
            set
            {
                OnProvinceChanging(value);
                ReportPropertyChanging("Province");
                _Province = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Province");
                OnProvinceChanged();
            }
        }
        private global::System.String _Province;
        partial void OnProvinceChanging(global::System.String value);
        partial void OnProvinceChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String City
        {
            get
            {
                return _City;
            }
            set
            {
                OnCityChanging(value);
                ReportPropertyChanging("City");
                _City = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("City");
                OnCityChanged();
            }
        }
        private global::System.String _City;
        partial void OnCityChanging(global::System.String value);
        partial void OnCityChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Village
        {
            get
            {
                return _Village;
            }
            set
            {
                OnVillageChanging(value);
                ReportPropertyChanging("Village");
                _Village = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Village");
                OnVillageChanged();
            }
        }
        private global::System.String _Village;
        partial void OnVillageChanging(global::System.String value);
        partial void OnVillageChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Address
        {
            get
            {
                return _Address;
            }
            set
            {
                OnAddressChanging(value);
                ReportPropertyChanging("Address");
                _Address = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Address");
                OnAddressChanged();
            }
        }
        private global::System.String _Address;
        partial void OnAddressChanging(global::System.String value);
        partial void OnAddressChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailAddress
        {
            get
            {
                return _EmailAddress;
            }
            set
            {
                OnEmailAddressChanging(value);
                ReportPropertyChanging("EmailAddress");
                _EmailAddress = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("EmailAddress");
                OnEmailAddressChanged();
            }
        }
        private global::System.String _EmailAddress;
        partial void OnEmailAddressChanging(global::System.String value);
        partial void OnEmailAddressChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Remark
        {
            get
            {
                return _Remark;
            }
            set
            {
                OnRemarkChanging(value);
                ReportPropertyChanging("Remark");
                _Remark = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Remark");
                OnRemarkChanged();
            }
        }
        private global::System.String _Remark;
        partial void OnRemarkChanging(global::System.String value);
        partial void OnRemarkChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String State
        {
            get
            {
                return _State;
            }
            set
            {
                OnStateChanging(value);
                ReportPropertyChanging("State");
                _State = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("State");
                OnStateChanged();
            }
        }
        private global::System.String _State;
        partial void OnStateChanging(global::System.String value);
        partial void OnStateChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateTime
        {
            get
            {
                return _UpdateTime;
            }
            set
            {
                OnUpdateTimeChanging(value);
                ReportPropertyChanging("UpdateTime");
                _UpdateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateTime");
                OnUpdateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateTime;
        partial void OnUpdateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> LogonNum
        {
            get
            {
                return _LogonNum;
            }
            set
            {
                OnLogonNumChanging(value);
                ReportPropertyChanging("LogonNum");
                _LogonNum = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("LogonNum");
                OnLogonNumChanged();
            }
        }
        private Nullable<global::System.Int32> _LogonNum;
        partial void OnLogonNumChanging(Nullable<global::System.Int32> value);
        partial void OnLogonNumChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> LogonTime
        {
            get
            {
                return _LogonTime;
            }
            set
            {
                OnLogonTimeChanging(value);
                ReportPropertyChanging("LogonTime");
                _LogonTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("LogonTime");
                OnLogonTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _LogonTime;
        partial void OnLogonTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnLogonTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LogonIP
        {
            get
            {
                return _LogonIP;
            }
            set
            {
                OnLogonIPChanging(value);
                ReportPropertyChanging("LogonIP");
                _LogonIP = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("LogonIP");
                OnLogonIPChanged();
            }
        }
        private global::System.String _LogonIP;
        partial void OnLogonIPChanging(global::System.String value);
        partial void OnLogonIPChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> LastLogonTime
        {
            get
            {
                return _LastLogonTime;
            }
            set
            {
                OnLastLogonTimeChanging(value);
                ReportPropertyChanging("LastLogonTime");
                _LastLogonTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("LastLogonTime");
                OnLastLogonTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _LastLogonTime;
        partial void OnLastLogonTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnLastLogonTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LastLogonIP
        {
            get
            {
                return _LastLogonIP;
            }
            set
            {
                OnLastLogonIPChanging(value);
                ReportPropertyChanging("LastLogonIP");
                _LastLogonIP = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("LastLogonIP");
                OnLastLogonIPChanged();
            }
        }
        private global::System.String _LastLogonIP;
        partial void OnLastLogonIPChanging(global::System.String value);
        partial void OnLastLogonIPChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UpdatePerson
        {
            get
            {
                return _UpdatePerson;
            }
            set
            {
                OnUpdatePersonChanging(value);
                ReportPropertyChanging("UpdatePerson");
                _UpdatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("UpdatePerson");
                OnUpdatePersonChanged();
            }
        }
        private global::System.String _UpdatePerson;
        partial void OnUpdatePersonChanging(global::System.String value);
        partial void OnUpdatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Version
        {
            get
            {
                return StructuralObject.GetValidValue(_Version);
            }
            set
            {
                OnVersionChanging(value);
                ReportPropertyChanging("Version");
                _Version = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Version");
                OnVersionChanged();
            }
        }
        private global::System.Byte[] _Version;
        partial void OnVersionChanging(global::System.Byte[] value);
        partial void OnVersionChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment")]
        public SysDepartment SysDepartment
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment").Value = value;
            }
        }
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<SysDepartment> SysDepartmentReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<SysDepartment>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<SysDepartment>("SysModel.FK_SYSPERSO_REFERENCE_SYSDEPAR", "SysDepartment", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "SysRoleSysPerson", "SysRole")]
        public EntityCollection<SysRole> SysRole
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysRole>("SysModel.SysRoleSysPerson", "SysRole");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysRole>("SysModel.SysRoleSysPerson", "SysRole", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// 没有元数据文档可用。
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="SysModel", Name="SysRole")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SysRole : EntityObject
    {
        #region 工厂方法
    
        /// <summary>
        /// 创建新的 SysRole 对象。
        /// </summary>
        /// <param name="id">Id 属性的初始值。</param>
        /// <param name="name">Name 属性的初始值。</param>
        public static SysRole CreateSysRole(global::System.String id, global::System.String name)
        {
            SysRole sysRole = new SysRole();
            sysRole.Id = id;
            sysRole.Name = name;
            return sysRole;
        }

        #endregion

        #region 基元属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Id
        {
            get
            {
                return _Id;
            }
            set
            {
                if (_Id != value)
                {
                    OnIdChanging(value);
                    ReportPropertyChanging("Id");
                    _Id = StructuralObject.SetValidValue(value, false);
                    ReportPropertyChanged("Id");
                    OnIdChanged();
                }
            }
        }
        private global::System.String _Id;
        partial void OnIdChanging(global::System.String value);
        partial void OnIdChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Name
        {
            get
            {
                return _Name;
            }
            set
            {
                OnNameChanging(value);
                ReportPropertyChanging("Name");
                _Name = StructuralObject.SetValidValue(value, false);
                ReportPropertyChanged("Name");
                OnNameChanged();
            }
        }
        private global::System.String _Name;
        partial void OnNameChanging(global::System.String value);
        partial void OnNameChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Description
        {
            get
            {
                return _Description;
            }
            set
            {
                OnDescriptionChanging(value);
                ReportPropertyChanging("Description");
                _Description = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("Description");
                OnDescriptionChanged();
            }
        }
        private global::System.String _Description;
        partial void OnDescriptionChanging(global::System.String value);
        partial void OnDescriptionChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> CreateTime
        {
            get
            {
                return _CreateTime;
            }
            set
            {
                OnCreateTimeChanging(value);
                ReportPropertyChanging("CreateTime");
                _CreateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("CreateTime");
                OnCreateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _CreateTime;
        partial void OnCreateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnCreateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CreatePerson
        {
            get
            {
                return _CreatePerson;
            }
            set
            {
                OnCreatePersonChanging(value);
                ReportPropertyChanging("CreatePerson");
                _CreatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("CreatePerson");
                OnCreatePersonChanged();
            }
        }
        private global::System.String _CreatePerson;
        partial void OnCreatePersonChanging(global::System.String value);
        partial void OnCreatePersonChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> UpdateTime
        {
            get
            {
                return _UpdateTime;
            }
            set
            {
                OnUpdateTimeChanging(value);
                ReportPropertyChanging("UpdateTime");
                _UpdateTime = StructuralObject.SetValidValue(value);
                ReportPropertyChanged("UpdateTime");
                OnUpdateTimeChanged();
            }
        }
        private Nullable<global::System.DateTime> _UpdateTime;
        partial void OnUpdateTimeChanging(Nullable<global::System.DateTime> value);
        partial void OnUpdateTimeChanged();
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UpdatePerson
        {
            get
            {
                return _UpdatePerson;
            }
            set
            {
                OnUpdatePersonChanging(value);
                ReportPropertyChanging("UpdatePerson");
                _UpdatePerson = StructuralObject.SetValidValue(value, true);
                ReportPropertyChanged("UpdatePerson");
                OnUpdatePersonChanged();
            }
        }
        private global::System.String _UpdatePerson;
        partial void OnUpdatePersonChanging(global::System.String value);
        partial void OnUpdatePersonChanged();

        #endregion

    
        #region 导航属性
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "FK_SYSMENUS_REFERENCE_SYSROLE", "SysMenuSysRoleSysOperation")]
        public EntityCollection<SysMenuSysRoleSysOperation> SysMenuSysRoleSysOperation
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysMenuSysRoleSysOperation");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysMenuSysRoleSysOperation>("SysModel.FK_SYSMENUS_REFERENCE_SYSROLE", "SysMenuSysRoleSysOperation", value);
                }
            }
        }
    
        /// <summary>
        /// 没有元数据文档可用。
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("SysModel", "SysRoleSysPerson", "SysPerson")]
        public EntityCollection<SysPerson> SysPerson
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SysPerson>("SysModel.SysRoleSysPerson", "SysPerson");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SysPerson>("SysModel.SysRoleSysPerson", "SysPerson", value);
                }
            }
        }

        #endregion

    }

    #endregion

    
}
