开发者

nulls and dbnull is there more efficient syntax

开发者 https://www.devze.com 2022-12-24 02:15 出处:网络
I am trying to use the solution given here -> C# ADO.NET: nulls and DbNull -- is there more efficient syntax开发者_如何学JAVA?

I am trying to use the solution given here ->

C# ADO.NET: nulls and DbNull -- is there more efficient syntax开发者_如何学JAVA?

But I am working with an int.

Thanks


int? myNullableInt = null;
myIntParameter.Value = myNullableInt ?? (object)DBNull.Value;


Substitute int? for DateTime? then...

0

精彩评论

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