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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:29:24+00:00 2026-05-27T13:29:24+00:00

I wanted to select rows from a view using Linq to Entities, so I

  • 0

I wanted to select rows from a view using Linq to Entities, so I right clicked the edmx designer and “generate model from database”, then selected the view from the wizard. The view appears. I can select rows.

However, from this point on, “generate database from model” now results in this (benign i think but annoying) error:

Msg 2714, Level 16, State 6, Line 3
There is already an object named 'vAdvertiserEmployees' in the database.
Msg 4909, Level 16, State 1, Line 3
Cannot alter 'dbo.vAdvertiserEmployees' because it is not a table.

What am I doing wrong here?

  • 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-05-27T13:29:24+00:00Added an answer on May 27, 2026 at 1:29 pm

    Update model from database and Generated database from model are two exclusive approaches. Built-in VS EF designer is not able to go from one to another without very big pain – once you start using database constructs like views the way back to generating model from the database is gone. The view in EDMX file is represented as SQL query selecting from the view (inside element called DefiningQuery). If you run Generate database from model whole database description (SSDL part) is deleted from EDMX file and replaced with a new one which doesn’t allow custom SQL queries (model doesn’t know anything about DB constructs like views). It means that all your mapped views will became tables for EF and next step will create scripts for creating / changing tables (changing only with additional tools like Database Generation power pack).

    Choose one approach and follow it for whole development or use (buy) some extension to designer which will allow you swapping between these approaches. As an example of tools which allow you selectively update both model and database check Huagati EDMX tools.

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

Sidebar

Related Questions

I wanted to generate one fix view using interface builder, but the size of
i am tryng to select 5 mysql rows from the database and display them
I wanted to be able to randomly select rows from a table in a
I am currently selecting a large list of rows from a database using pyodbc.
Look at this simple query SELECT id FROM users Now, say I wanted to
I'm having difficulty deleting the desired rows from my table in MySQL. I'm using
<div id=myDiv> <a>...</a> <a>...</a> <a>...</a> <a>...</a> <a>...</a> <a>...</a> </div> If you wanted to select
I wanted to sorting items in select, but all solution what I finded have
Wanted to get some consensus around a UI feature I'm working on right now.
I'm using jQuery datatables plug-in on my HTML Table. I wanted to know how

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.