Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Table Adapters with Non Nullable Fields.

Reply
Thread Tools

Table Adapters with Non Nullable Fields.

 
 
Microsoft Newsserver
Guest
Posts: n/a
 
      06-18-2008
OK this is kind of an anomaly here.


I have a table with a Primary Key which of course is non nullable. However,
I want to generate a query in my table adapter which makes use of the ID
Parameter using the where clause.

Where ID=@ID or @ID IS NULL

So, the signature generated by the designer ( 2005/2.0 ) is
functionname( System.int32 )

In order to allow me to select a specific row, or all rows. I have to select
the query in the table adapter and tell the parameter that it is nullable.
So far so good.

Only issue is everytime I modify that query, it puts the parameters back to
non nullable, giving me my original problem. Is there a way of preventing
the designer from doing this, and is this addressed in 3.0 ?

Cheers


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Supply Telephone Voice Modular Adapters,Telephone Modular Couplers,Modular Duplex Jack,Triplex Adapters,Telephone extension Cord samul888@vip.163.com Cisco 1 11-13-2005 09:23 AM
Supply Telephone Voice Modular Adapters,Telephone Modular Couplers,Modular Duplex Jack,Triplex Adapters,Telephone extension Cord samul888@vip.163.com Computer Support 0 11-12-2005 06:22 AM
Supply Telephone Voice Modular Adapters,Telephone Modular Couplers,Modular Duplex Jack,Triplex Adapters,Telephone extension Cord samul888@vip.163.com VOIP 0 11-12-2005 06:22 AM
Supply Telephone Accessories,Modular Adapters Couplers,Duplex Jack,Triplex Adapters,ADSL Adapters,Plug With RJ12 Jacks samul888@vip.163.com Cisco 0 11-10-2005 07:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57