Nullable Int Column in DataSet

前端 未结 3 1144
一个人的身影
一个人的身影 2021-01-12 09:52

I\'m working with .NET strongly-typed datasets and have a table with a nullable int column (and a nullable DateTime column as well).

Apparently there is a bug with t

3条回答
  •  一个人的身影
    2021-01-12 10:26

    I think this post on ASP.NET forum will be some help for the question: Strongly-Typed DataSet/Nullable column issue

    The only way to set such properties to null is to use the helper methods that the dataset generator also creates. The methods are named after your column name, so in your case, you should have methods on the data row object called IsApprovingUserNull() and SetApprovingUserNull().

提交回复
热议问题