Пример #1
0
 /// <summary>
 /// 全构造函数
 /// </summary>
 public SystemPrivilegeEntity(int privilegeID, SystemOperationEntity operationID, SystemResourcesEntity resourcesID, string privilegeCnName, string privilegeEnName, string defaultValue, string description, int privilegeOrder, string privilegeCategory)
 {
     _privilegeID       = privilegeID;
     _operationID       = operationID;
     _resourcesID       = resourcesID;
     _privilegeCnName   = privilegeCnName;
     _privilegeEnName   = privilegeEnName;
     _defaultValue      = defaultValue;
     _description       = description;
     _privilegeOrder    = privilegeOrder;
     _privilegeCategory = privilegeCategory;
 }
Пример #2
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public SystemPrivilegeEntity()
 {
     _privilegeID       = 0;
     _operationID       = null;
     _resourcesID       = null;
     _privilegeCnName   = String.Empty;
     _privilegeEnName   = String.Empty;
     _defaultValue      = null;
     _description       = null;
     _privilegeOrder    = 0;
     _privilegeCategory = null;
 }
        /// <summary>
        /// local implementation of Equals based on unique value members
        /// </summary>
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if ((obj == null) || (obj.GetType() != this.GetType()))
            {
                return(false);
            }

            SystemOperationEntity castObj = (SystemOperationEntity)obj;

            return((castObj != null) && (this._operationID == castObj.OperationID));
        }
 /// <summary>
 /// 全构造函数
 /// </summary>
 public SystemPrivilegeEntity(int privilegeID, SystemOperationEntity operationID, SystemResourcesEntity resourcesID, string privilegeCnName, string privilegeEnName, string defaultValue, string description, int privilegeOrder, string privilegeType, int?createBy, DateTime?createAt, int?lastModifyBy, DateTime?lastModifyAt, string lastModifyComment)
 {
     _privilegeID       = privilegeID;
     _operationID       = operationID;
     _resourcesID       = resourcesID;
     _privilegeCnName   = privilegeCnName;
     _privilegeEnName   = privilegeEnName;
     _defaultValue      = defaultValue;
     _description       = description;
     _privilegeOrder    = privilegeOrder;
     _privilegeType     = privilegeType;
     _createBy          = createBy;
     _createAt          = createAt;
     _lastModifyBy      = lastModifyBy;
     _lastModifyAt      = lastModifyAt;
     _lastModifyComment = lastModifyComment;
 }
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public SystemPrivilegeEntity()
 {
     _privilegeID       = 0;
     _operationID       = null;
     _resourcesID       = null;
     _privilegeCnName   = String.Empty;
     _privilegeEnName   = String.Empty;
     _defaultValue      = null;
     _description       = null;
     _privilegeOrder    = 0;
     _privilegeType     = null;
     _createBy          = null;
     _createAt          = null;
     _lastModifyBy      = null;
     _lastModifyAt      = null;
     _lastModifyComment = null;
 }