Table columns intellisense in c#

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2008
Posts: 48
Reputation: stoymigo is an unknown quantity at this point 
Solved Threads: 1
stoymigo stoymigo is offline Offline
Light Poster

Table columns intellisense in c#

 
0
  #1
Oct 20th, 2009
Hi ,
I am busy converting a VB6 project to c#.
Now in vb6 , the columns have intellisense like so...

  1. rsIBBSData!DrOrCr = 1 'rs is the recordset

But in c# , i would either have to create an sql query , or use datarow with a column index or column name as index.

Having to use column index is error prone , and having to type column name is burdensome(many columns in tables) .

I know it is something along the lines of creating dataset(via datasources wizard) and/or table adapter .
Pls give me instructions if you know how.(no commercial products or complex procedures please)

-Thanks
Last edited by stoymigo; Oct 20th, 2009 at 10:52 am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 48
Reputation: stoymigo is an unknown quantity at this point 
Solved Threads: 1
stoymigo stoymigo is offline Offline
Light Poster
 
0
  #2
Oct 20th, 2009
What i've done so far is to add a data source (i.e a dataset including only one table).
I am getting the intellisense , and am about to test inserting a record (I have not set non null fields).
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,242
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 577
Sponsor
sknake's Avatar
sknake sknake is offline Offline
.NET Enthusiast
 
0
  #3
Oct 20th, 2009
It sounds like you're on the right track. You know what you need to do so I don't understand what you're asking. If you have a specific question about creating a dataset or its' behavior then please update the thread with your question.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 48
Reputation: stoymigo is an unknown quantity at this point 
Solved Threads: 1
stoymigo stoymigo is offline Offline
Light Poster
 
0
  #4
Oct 20th, 2009
Problem is solved ,
I did the above , in runtime I had to change the connection string , and whichever fields of a row I did not set , then a default null was inserted.If the field was not nullable then I would get a compile-time error which is better than runtime.

Further suggestions are still welcome...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC