예제 #1
0
 /// <summary>
 /// CopyValue 方法
 /// </summary>
 public virtual void CopyValue(SystemResourcesBase obj)
 {
     obj.ResourcesNameCn          = this._resources_namecn;
     obj.ResourcesNameEn          = this._resources_nameen;
     obj.ResourcesDescription     = this._resources_description;
     obj.ResourcesType            = this._resources_type;
     obj.ResourcesLimitExpression = this._resources_limitexpression;
     obj.ResourcesIsRelateUser    = this._resources_isrelateuser;
     obj.MoudleID = this._moudleid;
 }
예제 #2
0
        /// <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);
            }
            SystemResourcesBase castObj = (SystemResourcesBase)obj;

            return((castObj != null) &&
                   (this._resources_id == castObj.ResourcesID));
        }