Example #1
0
        /// <summary>
        /// Returns a <see cref="System.String" /> that represents this instance.
        /// </summary>
        /// <returns>A <see cref="System.String" /> that represents this instance.</returns>
        public override string ToString()
        {
            if (PersistentId != default(int))
            {
                return(PersistentId.ToString());
            }

            if (TempId != default(Guid))
            {
                return(TempId.ToString());
            }

            return(string.Empty);
        }
Example #2
0
        public XElement ToXml()
        {
            XElement result = new XElement("Temp");

            YellowstonePathology.Business.Domain.Persistence.SerializationHelper.Serialize(result, "TempId", TempId.ToString());
            YellowstonePathology.Business.Domain.Persistence.SerializationHelper.Serialize(result, "TempDate", TempDate);
            YellowstonePathology.Business.Domain.Persistence.SerializationHelper.Serialize(result, "Hello", Hello.ToString());
            return(result);
        }