Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3949868
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:32:40+00:00 2026-05-20T01:32:40+00:00

link http://msdn.microsoft.com/en-us/library/ee796239%28v=vs.91%29.aspx#Y3078 the code return this.ObjectContext.SalesOrderHeaders.OrderBy(e=>e.SalesOrderID); note have done and checked everything done till

  • 0

link

http://msdn.microsoft.com/en-us/library/ee796239%28v=vs.91%29.aspx#Y3078

the code

return this.ObjectContext.SalesOrderHeaders.OrderBy(e=>e.SalesOrderID);

note

  • have done and checked everything done till now is according to the tutorial
  • my table is named SERVER,

so something like, the following should work,

return this.ObjectContext.SERVERs.OrderBy(e=>e.username);

prob

Visual Studio 2010 says that there is no “e”.

EDIT THE ERRORS-

Error   13  Cannot convert lambda expression to type 'string' because it is not a delegate type D:\DOCUMENTSS\Visual Studio 2010\Projects\ExampleBusinessApplication\ExampleBusinessApplication.Web\DomainService1.cs   35  55  ExampleBusinessApplication.Web


Error   14  A local variable named 'e' cannot be declared in this scope because it would give a different meaning to 'e', which is already used in a 'parent or current' scope to denote something else D:\DOCUMENTSS\Visual Studio 2010\Projects\ExampleBusinessApplication\ExampleBusinessApplication.Web\DomainService1.cs   35  55  ExampleBusinessApplication.Web
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:32:40+00:00Added an answer on May 20, 2026 at 1:32 am

    The error message appears to be telling you that e is already defined as something (presumably a string) elsewhere in the scope that contains your return statement. Without seeing your code, I can only conjecture that you have something like this:

    method()
    {
      string e = "abcd";
    
      return this.ObjectContext.SERVERs.OrderBy(e=>e.username);
    }
    

    That isn’t going to work, because the symbol you’re trying to use as an argument to a lambda expression is already declared.

    If you don’t understand the use of => syntax for declaring delegates, you owe it to yourself to figure that out. 🙂 Here’s a tutorial, for example.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just read this link http://msdn.microsoft.com/en-us/library/ms186243.aspx Here is the code to create table and
I just downloaded one sample from this link :- http://msdn.microsoft.com/en-us/library/ff431744%28v=VS.92%29.aspx But when i try
http://msdn.microsoft.com/en-us/library/ms189797.aspx In this link they are committing a transaction within catch clause IF (XACT_STATE())
This link http://msdn.microsoft.com/en-us/library/aa772153(VS.85).aspx says: You can register up to five notification requests on a
I checked out this link: http://msdn.microsoft.com/en-us/library/ff769510(v=VS.92).aspx But when I run the default windows phone
I am trying to enable SQL Debugging following this link http://msdn.microsoft.com/en-us/library/ms165038%28VS.80%29.aspx but i can't
Refering to this link http://msdn.microsoft.com/en-us/library/b1csw23d.aspx it seems that it is not possible with the
Have followed every step correctly from this link http://msdn.microsoft.com/en-us/library/ms746621.aspx When trying to localize the
I tried getting AccExplorer32 from this link http://msdn.microsoft.com/en-us/library/dd631969.aspx and many others, but it says
I published a simple ASP.net website referring to this link : http://msdn.microsoft.com/en-us/library/1y1404zt%28v=vs.80%29.aspx I managed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.