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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:37:29+00:00 2026-06-15T11:37:29+00:00

I have a database that is changing a lot and i am constantly having

  • 0

I have a database that is changing a lot and i am constantly having to go into the data context designer and manually set a number of associations child properties to false. Each time i delete the table from the designer i have to go back in and redo all the associations.

Is there a way to use a partial class to define what the association child property is on say an entity called Company which has a one to many relationship to an entity called Program?

My hope is that i can simply change the association child property in code so that each time the entity is removed from the data context and re-added, i dont have to go through the whole process again.

Thanks for any help!

  • 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-15T11:37:30+00:00Added an answer on June 15, 2026 at 11:37 am

    I have been watching this question, hoping someone has better news for you than I do. You can in fact add a partial class in the same namespace as your context and within there define new name for the child property/collection (it is so annoying to have it re-generate as User1, User2, User3 when you have defined it as OpenedBy, ApprovedBy and ClosedBy or some similar such thing).

    This does help with being able to access the properties by a more friendly name, as you have expressed above; however I have not found a way yet to, in that partial class, define the property such that it maintains all the properties (pun not intended) of Entity Framework navigation properties with full read/write functionality.

    It doesn’t solve your problem, but as far as I know, it is an accurate answer; I have moved on and just accepted that I will have to rename navigation properties in the EDMX in the case that I have to drop/re-add an entity.

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

Sidebar

Related Questions

I have a database that had 15 years of cruft stuffed into it by
I have a Database that contains data about articles , structures and manufacturers .
I have a few columns in my database schema that have bit data types
I have a database that contains a lot of NCHAR(n) columns. Some of these
i have DataBase function that calculate distance by coordinates CREATE OR REPLACE FUNCTION distance(lat1
I have a database that has around 10k records and some of them contain
I have a database that has a table email_eml that stores 3 attributes name_eml,
I have a database that has 16 tables, but only four are relevant to
I have a database that which contains two tables, links and tour. Tour is
I have a database that has the following columns: ------------------- id|domain|hit_count ------------------- And I

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.