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 9232645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:21:48+00:00 2026-06-18T06:21:48+00:00

I have a local and development environment, each very similar to each other (OS

  • 0

I have a local and development environment, each very similar to each other (OS differences aside). They both run the same project which is making use of the Entity Framework. I use LINQpad quite a bit to interrogate data on both environments — but where required I have access to SQL etc. etc.

So, this is all started with a very strange occurance. Within my business logic layer, I make a call to get a list of Contacts and then marshall that list into a custom type. The custom-type calls for an Initial index based on the name of each of the contacts.

For reference, this is the code that performs the marshalling:-

private static IEnumerable<AlphabetisedContact> _getGroupedContacts(int clientid)
        {
            return _getLiteContacts(clientid).GroupBy(c => c.Name[0]).Select(
                    g => new AlphabetisedContact { Initial = g.Key, Contacts = g.ToList() }).OrderBy(g => g.Initial);
        }

So, this all seems to work fine. Except, it never returns any Contact with the first initial of a. I decided to try and debug this and using LINQpad found a weirdness. Whether this has anything to do with my code not returning a contacts I don’t know (??), but this was the weirdness I found:-

Local Machine:-
enter image description here

Development Machine:-
enter image description here

For the less eagle-eyed of you, the Entity Set Name returned by EF, seems to be different. With the development machine, they’re returned with underscores between words — which is not how the EDMX was setup. For example, it is Name on local, Contact_name on dev. Again, this may have absolutely nothing to do with why I can’t get a contacts. I don’t get errors on the dev box, contacts are returned etc. etc. but I can’t get a contacts.

Can anyone offer some assistance/advice/guidance on how to fix this? It’s become a case of “wood-for-the-trees” now…

Help appreciated.

  • 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-06-18T06:21:49+00:00Added an answer on June 18, 2026 at 6:21 am

    Turns out this was a catastrophic boo-boo on my part. Please see answer to this on this SO:

    Why Won't This LINQ Return A Particular Initial?

    Thanks to all who took the time to take a peek – and at least a stab at answer.

    😉

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

Sidebar

Related Questions

I have run into problems getting my local php and rails development environments to
I recently started working on a Laravel project in my local development environment (MAMP,
I have a local development environment that relies heavily on system environment variables (it
I have problems setting up my local development environment on a mac. What i
Our setup as follows: We have a local development server running Ubuntu, with a
I have my site mydomain.local on my local development machine, which uses a local
I have a really weird issue here. I'm using my local development server right
I have a little problem in my query. My database at my local development
I have configured my application to use the Service configuration Local in the development
I have worked within a web development company where we had our local machines,

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.