Click here to Skip to main content
15,891,981 members
Home / Discussions / Database
   

Database

 
QuestionWhat is the format of the connection string used for mysql database access? Pin
Gbenbam24-Oct-13 15:59
Gbenbam24-Oct-13 15:59 
AnswerRe: What is the format of the connection string used for mysql database access? Pin
PIEBALDconsult24-Oct-13 17:33
mvePIEBALDconsult24-Oct-13 17:33 
AnswerRe: What is the format of the connection string used for mysql database access? Pin
coded00725-Oct-13 3:17
professionalcoded00725-Oct-13 3:17 
QuestionLINQ syntax Pin
vkEE24-Oct-13 3:24
vkEE24-Oct-13 3:24 
QuestionRe: LINQ syntax Pin
thatraja24-Oct-13 3:37
professionalthatraja24-Oct-13 3:37 
AnswerRe: LINQ syntax Pin
vkEE24-Oct-13 3:58
vkEE24-Oct-13 3:58 
GeneralRe: LINQ syntax Pin
Bernhard Hiller24-Oct-13 21:28
Bernhard Hiller24-Oct-13 21:28 
AnswerRe: LINQ syntax Pin
Richard Deeming24-Oct-13 4:25
mveRichard Deeming24-Oct-13 4:25 
The problem here is that you're mixing up the query syntax and the method syntax[^]. When the compiler is complaining that you're missing a select, it means that a query-syntax query must end with a select statement, but you've tried to fix it by adding a call to the Select method.

Your query could be written in one of two ways:
C#
// Query syntax:
var dispQuestions = (from m in demographicList where m.customertype == "Patient" select m).ToList();

// Method syntax:
var dispQuestions = demographicList.Where(o => o.customertype == "Patient").ToList();


I tend to prefer the second option, but it's a purely aesthetic choice.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


NewsProblem Connecting To SQL from SOME Machines Pin
Kevin Marois22-Oct-13 9:29
professionalKevin Marois22-Oct-13 9:29 
AnswerRe: Problem Connecting To SQL from SOME Machines Pin
thatraja22-Oct-13 22:36
professionalthatraja22-Oct-13 22:36 
GeneralRe: Problem Connecting To SQL from SOME Machines Pin
jschell23-Oct-13 9:48
jschell23-Oct-13 9:48 
GeneralRe: Problem Connecting To SQL from SOME Machines Pin
Bernhard Hiller23-Oct-13 20:43
Bernhard Hiller23-Oct-13 20:43 
GeneralRe: Problem Connecting To SQL from SOME Machines Pin
jschell24-Oct-13 7:47
jschell24-Oct-13 7:47 
QuestionHow to insert data in the tables Pin
lichengjuan-421-Oct-13 18:39
lichengjuan-421-Oct-13 18:39 
AnswerRe: How to insert data in the tables PinPopular
Mycroft Holmes21-Oct-13 18:44
professionalMycroft Holmes21-Oct-13 18:44 
AnswerRe: How to insert data in the tables Pin
Amol_B23-Oct-13 20:37
professionalAmol_B23-Oct-13 20:37 
AnswerRe: How to insert data in the tables Pin
coded00725-Oct-13 3:19
professionalcoded00725-Oct-13 3:19 
AnswerRe: How to insert data in the tables Pin
rashin ghodratzade28-Oct-13 6:51
rashin ghodratzade28-Oct-13 6:51 
QuestionHow to copy table data SQL 2005 Express fastest ? Pin
Member 245846720-Oct-13 19:48
Member 245846720-Oct-13 19:48 
AnswerRe: How to copy table data SQL 2005 Express fastest ? Pin
Jörgen Andersson20-Oct-13 21:43
professionalJörgen Andersson20-Oct-13 21:43 
AnswerRe: How to copy table data SQL 2005 Express fastest ? Pin
Mycroft Holmes20-Oct-13 21:55
professionalMycroft Holmes20-Oct-13 21:55 
GeneralRe: How to copy table data SQL 2005 Express fastest ? Pin
Member 245846721-Oct-13 18:58
Member 245846721-Oct-13 18:58 
GeneralRe: How to copy table data SQL 2005 Express fastest ? Pin
Mycroft Holmes21-Oct-13 19:04
professionalMycroft Holmes21-Oct-13 19:04 
GeneralRe: How to copy table data SQL 2005 Express fastest ? Pin
Member 245846721-Oct-13 19:26
Member 245846721-Oct-13 19:26 
GeneralRe: How to copy table data SQL 2005 Express fastest ? Pin
Mycroft Holmes21-Oct-13 19:41
professionalMycroft Holmes21-Oct-13 19:41 

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.