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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:46:58+00:00 2026-05-16T21:46:58+00:00

Suppose that I have 2 tables: [User] – UserID – Username [Task] – TaskID

  • 0

Suppose that I have 2 tables:

[User]
– UserID
– Username

[Task]
– TaskID
– TaskName
– TaskCreatedByUserID
– TaskAssignedToUserID

In the [Task] table, both of the ***UserID fields are foreign keys to the [User] table. So when I use the designer to create my LINQ models, I have access to 2 foreign [User] objects with property names: “User” and “User1”. I’d like to give them more precise, meaningful names like “TaskCreatedByUser” and “TaskAssignedToUser” . I could, of course, go into the dbml.designer.cs file and change them, but then they will simply be overwritten the next time I have to alter the DB. Another option is to create a redundant property, but that seems silly. Is there a way to manually specify the foreign object property names in the designer (or otherwise) in a way that is persistent?

  • 1 1 Answer
  • 1 View
  • 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-16T21:46:59+00:00Added an answer on May 16, 2026 at 9:46 pm

    Go into the designer, right click on the line that represents the association between the classes, and select properties. You can change the name of the child-collection property on the parent and the name of the parent property on the child.

    The changes will be saved in the Association element in the dbml.

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

Sidebar

Related Questions

Suppose I have three tables: user , group and xref , a table that
Suppose that we have following tables create table Employee( 2 EMPNO NUMBER(3), 3 ENAME
Suppose I have two tables, which both have user ids. I want to perform
I have two tables, in which one user can have several contacts: User(UserId, UserName)
Suppose I have a user table that creates strong relationships (Enforce Foreign Key Constraint)
Suppose I have two tables that are linked (one has a foreign key to
Lets suppose that I have a Category table with a column that holds the
Suppose I have table A with a field that can be either 1 or
Suppose I have a table, the first column is an identity. I thought that
Suppose I have an array that mimics a database table. Each array element represents

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.