if (Convert.IsDBNull(sqlcomm.ExecuteScalar()))
{
i = 1;
}
else
{
i = Convert.ToInt32(sqlcomm.ExecuteScalar());
}
Object cannot be cast from DBNull to other types
最新推荐文章于 2024-08-19 11:52:40 发布