bool isNull = false;DataTable dt = ....;//获得数据库中DatatableisNull = dt.Columns["column"].AllowDBNull;//是否允许DBNULLif (isNull == false) //不允许为空{ }
DBNULL