//检查是否为空,用三元表达式
info.PublishDate = reader["PublishDate"] == DBNull.Value ? DateTime.Now : Convert.ToDateTime(reader["PublishDate"]);
//检查是否为空,用三元表达式
info.PublishDate = reader["PublishDate"] == DBNull.Value ? DateTime.Now : Convert.ToDateTime(reader["PublishDate"]);