Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:35
likefood26-Jan-09 6:35 
AnswerRe: switch off computer Pin
Giorgi Dalakishvili26-Jan-09 6:10
mentorGiorgi Dalakishvili26-Jan-09 6:10 
GeneralRe: switch off computer Pin
likefood26-Jan-09 6:36
likefood26-Jan-09 6:36 
QuestionRe: switch off computer Pin
likefood26-Jan-09 8:16
likefood26-Jan-09 8:16 
AnswerRe: switch off computer Pin
likefood26-Jan-09 8:25
likefood26-Jan-09 8:25 
AnswerRe: switch off computer Pin
Xmen Real 26-Jan-09 14:03
professional Xmen Real 26-Jan-09 14:03 
GeneralRe: switch off computer Pin
likefood27-Jan-09 15:58
likefood27-Jan-09 15:58 
QuestionLinq to SQL question Pin
PaulPrice26-Jan-09 5:21
PaulPrice26-Jan-09 5:21 
Hi all, quick question, using the following

using(DataModel.DatabaseDataContext context = GetDatabaseContext())<br />
var result = from b in context.Branches<br />
             where b.Id == id<br />
             select new Branch()<br />
             {<br />
                Id = b.Id,<br />
                RowVersion = b.RowVersion.ToArray(),<br />
                Name = b.Name,<br />
                Description = b.Description<br />
             };


I get a compiler error stating that an embedded statement cannot be a declaration or labbeled statement. I believe this is related to the return type from the Linq statement.

Is anybody able to point me in the correct direction of what this type should be? I have tried several types and get the impression that I have a fundamental misunderstanding.

Just racking up the postings

AnswerRe: Linq to SQL question Pin
Wendelius26-Jan-09 9:00
mentorWendelius26-Jan-09 9:00 
QuestionHow to have access the drivers and API? Pin
Alex_xso26-Jan-09 5:16
Alex_xso26-Jan-09 5:16 
AnswerRe: How to have access the drivers and API? Pin
EliottA26-Jan-09 5:32
EliottA26-Jan-09 5:32 
GeneralRe: How to have access the drivers and API? Pin
WebMaster26-Jan-09 5:45
WebMaster26-Jan-09 5:45 
QuestionEmpty cell in gridview Pin
Raskelmos26-Jan-09 4:51
Raskelmos26-Jan-09 4:51 
AnswerRe: Empty cell in gridview Pin
Jim (SS)26-Jan-09 11:35
Jim (SS)26-Jan-09 11:35 
QuestionParsing Log Files Pin
alwaysthinking26-Jan-09 4:24
alwaysthinking26-Jan-09 4:24 
AnswerRe: Parsing Log Files Pin
Manas Bhardwaj26-Jan-09 4:29
professionalManas Bhardwaj26-Jan-09 4:29 
AnswerRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 4:41
Mustafa Ismail Mustafa26-Jan-09 4:41 
GeneralRe: Parsing Log Files Pin
alwaysthinking26-Jan-09 4:59
alwaysthinking26-Jan-09 4:59 
GeneralRe: Parsing Log Files Pin
Mark Churchill26-Jan-09 14:44
Mark Churchill26-Jan-09 14:44 
GeneralRe: Parsing Log Files Pin
Mustafa Ismail Mustafa26-Jan-09 23:49
Mustafa Ismail Mustafa26-Jan-09 23:49 
Question[Message Deleted] Pin
hkjghkj126-Jan-09 3:34
hkjghkj126-Jan-09 3:34 
AnswerRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 5:20
mvePIEBALDconsult26-Jan-09 5:20 
General[Message Deleted] Pin
hkjghkj126-Jan-09 6:50
hkjghkj126-Jan-09 6:50 
GeneralRe: CopyFromScreen() question. Pin
PIEBALDconsult26-Jan-09 7:08
mvePIEBALDconsult26-Jan-09 7:08 
QuestionHow do I bounce an old thread? Pin
Butter18526-Jan-09 3:29
Butter18526-Jan-09 3:29 

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.