开发者

inserting blank row/cell from datatable into database in C#.NET

开发者 https://www.devze.com 2023-02-18 05:43 出处:网络
I am reading data table and trying to insert开发者_高级运维 into database. Now, I have few rows/cell whose is null or empty.

I am reading data table and trying to insert开发者_高级运维 into database. Now, I have few rows/cell whose is null or empty.

I want to insert those row properly into database.

Can anyone help me out or provide me simple program.

Thanks, Rushabh Shah.


Just set any value you want to be "blank" to DBNull.Value, which "Represents a nonexistent value".

0

精彩评论

暂无评论...
验证码 换一张
取 消