示例#1
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);
            }

            SystemUserGroupRoleRelationEntity castObj = (SystemUserGroupRoleRelationEntity)obj;

            return((castObj != null) && (this._userGroupRoleID == castObj.UserGroupRoleID));
        }
示例#2
0
 internal SystemUserGroupRoleRelationWrapper(SystemUserGroupRoleRelationEntity entityObj)
 {
     entity = entityObj;
 }
示例#3
0
        internal static SystemUserGroupRoleRelationWrapper ConvertEntityToWrapper(SystemUserGroupRoleRelationEntity entity)
        {
            if (entity == null)
                return null;
				
            if (entity.UserGroupRoleID == 0)
                return null;

            return new SystemUserGroupRoleRelationWrapper(entity);
        }