开发者

nulls and dbnull is there more efficient syntax

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜