public void VerifyFormat() { if (String.IsNullOrEmpty(EntityName.Trim())) { throw new EntityManagementException(MessagesExceptions.ErrorIsEmpty); } }
public override bool Equals(object obj) { Entity entity = obj as Entity; if (entity == null || Convert.IsDBNull(entity)) { return(false); } return(string.Equals(Utilities.DeleteSpaces(EntityName.Trim()), Utilities.DeleteSpaces(entity.EntityName.Trim()), StringComparison.OrdinalIgnoreCase)); }