Where are the IsNull methods on my DataSet

G

Guest

Usually, when I create a typed DataSet using the Visual Studio designer,
IsColumnNameNull methods are automatically generated for each column in my
tables. However, this time these methods were not created. I can not figure
out how to get them. Any advice? Thanks.
 
G

Guest

I think that is my problem. The AllowDBNull value must have been taken when
I dragged the table definition into the designer from Server Explorer. I can
not find a way to set AllowDBNull from the Visual Studio typed dataset
designer, though. Do I need to do this directly in the XML, or am I just
missing it somewhere else?

Miha Markic said:
Did you check if your columsn AllowDBNull?

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Harry Keck said:
Usually, when I create a typed DataSet using the Visual Studio designer,
IsColumnNameNull methods are automatically generated for each column in my
tables. However, this time these methods were not created. I can not
figure
out how to get them. Any advice? Thanks.
 
M

Miha Markic [MVP C#]

Select the appropriate column and use the Properties window to adjust it.
Does this work?

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Harry Keck said:
I think that is my problem. The AllowDBNull value must have been taken
when
I dragged the table definition into the designer from Server Explorer. I
can
not find a way to set AllowDBNull from the Visual Studio typed dataset
designer, though. Do I need to do this directly in the XML, or am I just
missing it somewhere else?

Miha Markic said:
Did you check if your columsn AllowDBNull?

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

Harry Keck said:
Usually, when I create a typed DataSet using the Visual Studio
designer,
IsColumnNameNull methods are automatically generated for each column in
my
tables. However, this time these methods were not created. I can not
figure
out how to get them. Any advice? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top