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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:05:37+00:00 2026-06-04T04:05:37+00:00

I have several navigation properties from a ‘Users’ table to a ‘Reports’ table. The

  • 0

I have several navigation properties from a ‘Users’ table to a ‘Reports’ table. The navigation properties that are generated are obviously accessed like this:

USER.REPORTs.Where(x => ...)
USER.REPORTs2.Where(x => ...)
USER.REPORTs3.Where(x => ...)

The first one is user createdId, second UserApprovedId etc… basic stuff.

These are extremely difficult to interpret. Its difficult to tell which property you are navigating without accessing the EDMX and checking the navigation property.

Now I know I can create my own End1/End2 navigation properties the properties manager but these are lost if the Model is recreated.

Is there a way around this?

  • 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-04T04:05:38+00:00Added an answer on June 4, 2026 at 4:05 am

    I have not tried this, but here’s an idea: since all the entity types are partial classes why not wrap the navigation property generated by Visual Studio in another property with a convenient name?

    In your designer file you’ll have something like this:

    public partial class MyEntity : EntityObject
    {
        #region Navigation Properties
        public EntityCollection<MyOtherEntity> Other_Entities1
        {
            // ...
        }
        #endregion
    }
    

    You can then create another file in which to wrap the navigation property:

    public partial class MyEntity
    {
        public EntityCollection<MyOtherEntity> OtherEntities
        {
            get { return Other_Entities1;}
        }
    }
    

    You’ll use the property above throughout your code and since the same logic is used when Visual Studio generates the .edmx file the wrapped property won’t change.
    Even if the wrapped property will change its name you’ll need to adjust the code in a single place.

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

Sidebar

Related Questions

I have several similar links that trigger different navigation divs to appear. I am
I have several navigation related functions which I would like to have no depth
I have several subviews that are controlled by a navigation controller. One of them
I have several menu items like this: <navigation:RadMenuItem Header=New Assignment> <navigation:RadMenuItem.Icon> <Image Source=/Images/New_Assignment.jpeg Width=20
Here is the thing. I currently have a tabBar controller, with several navigation controllers
I have several pages to do with several table on each page. I've got
I have several complex data structures like Map< A, Set< B > > Set<
I have several textboxes where users can enter information into them. This can include
Background: I work in a suite of ASP.NET applications that have several different modules.
I have an App with a Navigation Controller, several sub Controllers. With XCode Debug

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.