Esempio n. 1
0
 public Entities.Sentiment ToSentimentEF(BusinessLogic.DTO.Sentiment sentiment)
 {
     return(new Entities.Sentiment()
     {
         Id = sentiment.Id,
         Word = sentiment.Word,
         Type = sentiment.Type
     });
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            if (obj == DBNull.Value)
            {
                return(false);
            }

            Sentiment sentiment = (Sentiment)obj;

            return(this.word.ToUpper().Equals(sentiment.word.ToUpper()) &&
                   this.type == sentiment.type);
        }