datatable将null转换为空 [英] datatable convert null to empty

查看:244
本文介绍了datatable将null转换为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用datatable概念从数据库中检索记录时,它将null值转换为empty.in我的表中的列值为null。但是当从datatable值获取为empty时,可以将其作为null。

when i am using datatable concept for retrieving records from database,its converting null value to empty.in my table the column value is null.but while getting from datatable value as empty.is it possible to get it as null.

推荐答案

您好,



请参考以下链接。



1. 处理强类型数据集中的空值

2. 数据集即使在AllowDBNull = False时允许Null值?



谢谢。
Hi,

Please refer the following links.

1. Handling Null Values in a Strongly Typed Dataset.
2. Dataset allowing Null values even when AllowDBNull = False?.

Thanks.


这篇关于datatable将null转换为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆