Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: reading from different files asynchronously Pin
igalep13229-Jun-11 9:02
igalep13229-Jun-11 9:02 
GeneralRe: reading from different files asynchronously Pin
SledgeHammer0129-Jun-11 9:18
SledgeHammer0129-Jun-11 9:18 
GeneralRe: reading from different files asynchronously Pin
BobJanova30-Jun-11 2:40
BobJanova30-Jun-11 2:40 
AnswerRe: reading from different files asynchronously Pin
PIEBALDconsult29-Jun-11 14:35
mvePIEBALDconsult29-Jun-11 14:35 
GeneralRe: reading from different files asynchronously Pin
igalep13229-Jun-11 19:57
igalep13229-Jun-11 19:57 
AnswerRe: reading from different files asynchronously Pin
Shameel30-Jun-11 1:02
professionalShameel30-Jun-11 1:02 
QuestionGet Current Identity value of the table using LINQ. Pin
madhubabu29-Jun-11 6:41
madhubabu29-Jun-11 6:41 
AnswerRe: Get Current Identity value of the table using LINQ. Pin
Dave Kreskowiak29-Jun-11 7:22
mveDave Kreskowiak29-Jun-11 7:22 
First, you can't do it in LINQ.

Next, the bigger question is why are you getting the next IDENTITY value or a table?? What do you think you're going to do with that value?? This value isn't usable in a multi-user environment because it can change immediately after a client gets the value.

Whoops...I missed the DataContext part. You're supplying a single parameter when ExecuteQuery expects two of them at least. The first is the query (you've got that), the second is the type of the IEnumerable to return. In your case, that would probably be an Integer or Long?

GeneralRe: Get Current Identity value of the table using LINQ. Pin
madhubabu29-Jun-11 8:05
madhubabu29-Jun-11 8:05 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
AspDotNetDev29-Jun-11 8:56
protectorAspDotNetDev29-Jun-11 8:56 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
madhubabu29-Jun-11 9:44
madhubabu29-Jun-11 9:44 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
Dave Kreskowiak29-Jun-11 9:35
mveDave Kreskowiak29-Jun-11 9:35 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
AspDotNetDev29-Jun-11 8:55
protectorAspDotNetDev29-Jun-11 8:55 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
Dave Kreskowiak29-Jun-11 9:25
mveDave Kreskowiak29-Jun-11 9:25 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
madhubabu29-Jun-11 9:47
madhubabu29-Jun-11 9:47 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
Dave Kreskowiak29-Jun-11 10:38
mveDave Kreskowiak29-Jun-11 10:38 
GeneralRe: Get Current Identity value of the table using LINQ. Pin
madhubabu29-Jun-11 10:55
madhubabu29-Jun-11 10:55 
SuggestionRe: Get Current Identity value of the table using LINQ. Pin
AspDotNetDev29-Jun-11 7:36
protectorAspDotNetDev29-Jun-11 7:36 
AnswerRe: Get Current Identity value of the table using LINQ. Pin
PIEBALDconsult29-Jun-11 15:02
mvePIEBALDconsult29-Jun-11 15:02 
AnswerRe: Get Current Identity value of the table using LINQ. Pin
#realJSOP30-Jun-11 1:32
professional#realJSOP30-Jun-11 1:32 
QuestionDatagridview Arabic Localization? C# 2010 Application Pin
Paramu197329-Jun-11 5:11
Paramu197329-Jun-11 5:11 
AnswerRe: Datagridview Arabic Localization? C# 2010 Application [modified] Pin
Not Active29-Jun-11 5:37
mentorNot Active29-Jun-11 5:37 
AnswerRe: Datagridview Arabic Localization? C# 2010 Application Pin
DoctorMick29-Jun-11 5:45
DoctorMick29-Jun-11 5:45 
GeneralRe: Datagridview Arabic Localization? C# 2010 Application Pin
Paramu197329-Jun-11 19:30
Paramu197329-Jun-11 19:30 
QuestionWCF Service Browsable through any Web Browser Pin
logicon29-Jun-11 4:36
logicon29-Jun-11 4:36 

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.