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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:53:33+00:00 2026-06-10T19:53:33+00:00

I am trying to add a read only View to the Entity Data Model

  • 0

I am trying to add a read only View to the Entity Data Model using the update model from database option in the .edmx file. I have been googling this issue into the ground and every site I go to and question I click on says that I need to add a primary key. I know that adding this view is possible because I have done this before using the same database, I just don’t remember how I did it. I can’t add a key to the view because it is read-only so that answer won’t work for me. I know that this question has been asked before but to be quite honest they all link back to the same questions that do not provide a good answer. I am 100% sure that I can add this view to the entity model and after I figure it out I will post here on how to do it if no one else can tell me how. In the mean time I thought I would ask you guys if you might know how I can add this view to the model. Thanks for your help! Hope you have a great day!

  • 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-10T19:53:34+00:00Added an answer on June 10, 2026 at 7:53 pm

    Even with a read-only view, it needs PKs (to uniquely identify rows) to properly retrieve from the database.

    Also, the PKs need to be non-nullable fields. I’ve had to add ISNULL(Field, 0) as Field in my Views’ select statements.

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

Sidebar

Related Questions

I am trying to read a Resource file in VSTO Shared add-in using the
Trying to add a view that combines data from two tables with a right
Failed to push selection: Read-only file system this error comes when i am trying
Using Android (Eclipse) I am trying to read a .csv file and dynamically populate
I'm trying to add tooltips to read-only inputs that might not always be wide
I'm trying add data triggers to the default combobox style so each text item
Im new to asp.net mvc. I'm trying add new model class but it got
I'm working on a hibernate entity mapping for a database view; when I do
right now I'm trying to open database, using db=SQLiteDatabase.openDatabase(path, null, SQLiteDatabase.OPEN_READONLY); Cursor resultset =
I am trying to create a program whereby i import data from an excel

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.