HighTechTalks DotNet Forums  

Where are the IsNull methods on my DataSet

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Where are the IsNull methods on my DataSet in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Harry Keck
 
Posts: n/a

Default Where are the IsNull methods on my DataSet - 01-03-2006 , 04:01 PM






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.

Reply With Quote
  #2  
Old   
Miha Markic [MVP C#]
 
Posts: n/a

Default Re: Where are the IsNull methods on my DataSet - 01-03-2006 , 04:37 PM






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" <HarryKeck (AT) discussions (DOT) microsoft.com> wrote

Quote:
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.



Reply With Quote
  #3  
Old   
Harry Keck
 
Posts: n/a

Default Re: Where are the IsNull methods on my DataSet - 01-04-2006 , 09:28 AM



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 [MVP C#]" wrote:

Quote:
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" <HarryKeck (AT) discussions (DOT) microsoft.com> wrote in message
news:0509F513-57AC-4B57-ABC6-9393B4A2B888 (AT) microsoft (DOT) com...
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.




Reply With Quote
  #4  
Old   
Miha Markic [MVP C#]
 
Posts: n/a

Default Re: Where are the IsNull methods on my DataSet - 01-04-2006 , 10:31 AM



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" <HarryKeck (AT) discussions (DOT) microsoft.com> wrote

Quote:
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 [MVP C#]" wrote:

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" <HarryKeck (AT) discussions (DOT) microsoft.com> wrote in message
news:0509F513-57AC-4B57-ABC6-9393B4A2B888 (AT) microsoft (DOT) com...
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.






Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.