Exemplo n.º 1
0
 public void VerifyFormat()
 {
     if (String.IsNullOrEmpty(EntityName.Trim()))
     {
         throw new EntityManagementException(MessagesExceptions.ErrorIsEmpty);
     }
 }
Exemplo n.º 2
0
        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));
        }