Click here to Skip to main content
15,891,253 members
Home / Discussions / C#
   

C#

 
Questioncapture Data Modified from database real time? Pin
jason_mf27-Dec-07 2:25
jason_mf27-Dec-07 2:25 
AnswerRe: capture Data Modified from database real time? Pin
Giorgi Dalakishvili27-Dec-07 2:42
mentorGiorgi Dalakishvili27-Dec-07 2:42 
GeneralRe: capture Data Modified from database real time? Pin
jason_mf27-Dec-07 3:02
jason_mf27-Dec-07 3:02 
GeneralRe: capture Data Modified from database real time? Pin
Giorgi Dalakishvili27-Dec-07 3:10
mentorGiorgi Dalakishvili27-Dec-07 3:10 
Generallinq update problem Pin
brain2cpu27-Dec-07 2:20
professionalbrain2cpu27-Dec-07 2:20 
GeneralRe: linq update problem Pin
TJoe27-Dec-07 5:17
TJoe27-Dec-07 5:17 
GeneralRe: linq update problem Pin
brain2cpu27-Dec-07 20:37
professionalbrain2cpu27-Dec-07 20:37 
GeneralRe: linq update problem Pin
TJoe28-Dec-07 3:47
TJoe28-Dec-07 3:47 
Yes it should be possible to only retrieve 3-4 columns from a DB table and still allow those columns to be updated. This is assuming ofcourse that one of those columns is a unique identifier for the associated row (e.g. the Primary Key).

For your code, it really depends on what db.Contacts returns. Since I can't see that code, I'm assuming that it returns a list of Contact objects that have all 15 columns. In order to only return 3-4 columns, then the Contact object would need to only have the 3-4 columns.

If you can provide some more of the code that would help (either through email or here). Let me know if this doesn't make sense also. But basically, the "object" that holds the data for a single row in your table is what must be updated. Therefore, you would need to change how many columns the "object" has before the code you posted earlier.

Take care,
Tom

-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com

GeneralRe: linq update problem Pin
brain2cpu30-Dec-07 23:42
professionalbrain2cpu30-Dec-07 23:42 
QuestionFile Dialoge Pin
sudany_zool27-Dec-07 1:25
sudany_zool27-Dec-07 1:25 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 1:33
mentorGiorgi Dalakishvili27-Dec-07 1:33 
GeneralRe: File Dialoge Pin
sudany_zool27-Dec-07 1:49
sudany_zool27-Dec-07 1:49 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 2:02
mentorGiorgi Dalakishvili27-Dec-07 2:02 
GeneralRe: File Dialoge Pin
sudany_zool27-Dec-07 2:10
sudany_zool27-Dec-07 2:10 
GeneralRe: File Dialoge Pin
Giorgi Dalakishvili27-Dec-07 2:43
mentorGiorgi Dalakishvili27-Dec-07 2:43 
GeneralRe: File Dialoge Pin
Xmen Real 27-Dec-07 3:45
professional Xmen Real 27-Dec-07 3:45 
Generalembed xml file into dll while deployment Pin
Member 183766127-Dec-07 1:13
Member 183766127-Dec-07 1:13 
GeneralRe: embed xml file into dll while deployment Pin
Paul Conrad27-Dec-07 6:37
professionalPaul Conrad27-Dec-07 6:37 
QuestionDatagrid values into database Pin
mchandu2bobby@gmail.com26-Dec-07 23:51
sussmchandu2bobby@gmail.com26-Dec-07 23:51 
GeneralRe: Datagrid values into database Pin
Paul Conrad27-Dec-07 6:38
professionalPaul Conrad27-Dec-07 6:38 
Generaldatagrid problem.... Pin
sindhutiwari26-Dec-07 22:22
sindhutiwari26-Dec-07 22:22 
GeneralRe: datagrid problem.... Pin
Abhijit Jana26-Dec-07 22:32
professionalAbhijit Jana26-Dec-07 22:32 
GeneralRe: datagrid problem.... Pin
sindhutiwari26-Dec-07 23:01
sindhutiwari26-Dec-07 23:01 
GeneralRe: datagrid problem.... Pin
Gopal.S27-Dec-07 0:34
Gopal.S27-Dec-07 0:34 
QuestionSimple phone book with person photo Pin
sudany_zool26-Dec-07 21:46
sudany_zool26-Dec-07 21:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.