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

  • Home
  • SEARCH
  • 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 8196243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:25:14+00:00 2026-06-07T05:25:14+00:00

Trying to add a view that combines data from two tables with a right

  • 0

Trying to add a view that combines data from two tables with a right join. The primary table has a primary key and I’ve included that in the view. When I add a model to my project, the view isn’t added and I get the warning:

The table/view ‘[TABLE NAME]‘ does not have a primary key defined ad no valid primary key could be inferred. This table/view has been excluded.

I need to model to be updated by non-developers so don’t want to start doing workarounds in the edmx file that could be overwritten by the designer.

So far I’ve tried:

Adding the view.
Adding the PK column of the primary table to the view and trying again.
Adding the underlying tables into the model.

Always the same result. If it helps, the data provided by the service will be read-only.

  • 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-07T05:25:15+00:00Added an answer on June 7, 2026 at 5:25 am

    You should be able to add a view, as long as there is a primary key in the underlying table or there are viable columns (non-nullable, non-binary) in the view. If not, you would have to add code manually that would be lost during a refresh.

    You mention a right join. Are you certain that there is a primary key in the table on the right of the join. ie. the table whose data is always returned, rather than the table that can return all nulls?

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

Sidebar

Related Questions

I'm trying to add a view that is a form that has 3 elements.
I'm trying to add a view cart button to my website that is using
Im trying to add a button in my grid view that will redirect me
Trying to create a page that allows users to add edit and view a
I have a view that I am trying to add to my ADO.NET Entity
I am basically trying to add two view controllers to one controller. I created
I have a LinearLayout view that I am trying to add a divider to
I am trying to make a scroll view that has a nested relativeLayout view.
I'm trying to add a strongly-typed view to the sample app that's created when
Im trying to add a list view to my activity. Here is what is

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.