示例#1
0
        /// <summary>
        /// Converts this instance of <see cref="testcorrunce"/> to an instance of <see cref="testcorrunceDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="testcorrunce"/> to convert.</param>
        public static testcorrunceDto ToDTO(this testcorrunce entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new testcorrunceDto();

            dto.TestConcurrenceId = entity.TestConcurrenceId;
            dto.Value             = entity.Value;

            entity.OnDTO(dto);

            return(dto);
        }