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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:14:24+00:00 2026-05-16T22:14:24+00:00

I have a view that I have been trying to map in either entity

  • 0

I have a view that I have been trying to map in either entity framework or linq to sql. However when querying the view it just crashes horribly (it is just this view).

Because the error message is completly generic I thought I would just divide and conquer, and delete half the columns on my view (in sql server), and then update the DataClasses… however when I compile I get an error:

The associated metadata type for type 'test' contains the following unknown properties or fields

… and then lists all of the fields I have deleted. I have tried to clean my solution, but still get this error.

How can I refresh the metadata?

  • 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-16T22:14:25+00:00Added an answer on May 16, 2026 at 10:14 pm

    If you’re dragging db objects from the server explorer into the L2S designer, then there’s a bug where it caches schema information after the first round. If you do schema changes and want to re-drag the same object you need to disconnect and reconnect the server explorer thingie, or restart Visual Studio to get it to requery the db for schema info.

    EF’s “update model from database” shouldn’t suffer from caching, but instead it has another issue where it will only update the SSDL portion of the EF model, leaving previously mapped entities/columns/etc in the CSDL in place where they become orphaned and can cause model validation failures that has to be cleaned up by hand or using 3rd party tools.

    Both issues are addressed by various 3rd party tools, for a list or 3rd party tools for L2S and/or EF see:
    http://www.thinqlinq.com/default/LINQ-Tools.aspx
    http://damieng.com/blog/2009/06/04/linq-to-sql-resources

    One of the tools addressing both of the above mentioned issues is my add-in for Visual Studio, Huagati DBML/EDMX Tools. if you want to try it out you can download it and get a trial license from http://huagati.com/dbmltools/

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

Sidebar

Related Questions

I have a view that has a list of jobs in it, with data
I have a view that I want to add some custom drawing to. I
I have a View that can vary significantly, depending on the 'mode' a particular
I have a view that is joining two tables and ordering by the first
Image i have a view that is cached with the OutputCache attribute but i
How does your employer limit/prevent pirating of its products? Some have the view that
I have a list view that is periodically updated (every 60 seconds). It was
I have a view user control that can post form. This control can be
I have a view using a master page that contains some javascript that needs
We have a View (call it X) that is the base view called by

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.