/// <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)); }
internal SystemUserGroupRoleRelationWrapper(SystemUserGroupRoleRelationEntity entityObj) { entity = entityObj; }
internal static SystemUserGroupRoleRelationWrapper ConvertEntityToWrapper(SystemUserGroupRoleRelationEntity entity) { if (entity == null) return null; if (entity.UserGroupRoleID == 0) return null; return new SystemUserGroupRoleRelationWrapper(entity); }