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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:29:38+00:00 2026-06-05T17:29:38+00:00

Trying to test the option of replacing our internal data access layer with Entity

  • 0

Trying to test the option of replacing our internal data access layer with Entity Framework 4 in our existing web application, I have started a new project and added an ADO.NET Entity Data model, then let it generate from the existing database.

It recognizes the tables in my database but it doesn’t show any relationships between these tables, they are totally separated from each other. Is there any preconditions on the database so one can use the database first method?

DBMS is SQL Server 2005, PK and FK are defined in the database.

Thank you in advance

  • 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-05T17:29:40+00:00Added an answer on June 5, 2026 at 5:29 pm

    The foreign key constraints are part of the storage model. You can use the model browser window to view the constraints. This window is probably only available with Service Pack 1 of Visual Studio.
    enter image description here

    The Entity Framework uses a memory model and a conceptual model. These are stored in a. Edmx file. It is a common XML file that can be edited using any text editor. The foreign key constraint appears in elements like

    <Association Name="FK_X_Y_NNNN">; ... </Association>
    

    In the Model Editor foreign key references are indicated by lines between the entities. At the ends of the lines the cardinality is indicated.

    If you see no foreign key constraints, then the database may not define them. Check your Database please.

    enter image description here

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

Sidebar

Related Questions

I'm trying to use JMeter to test our web application and I'd like to
I'm trying to test an Order entity method called AddItem and I'm trying to
I'm trying to test code around a web service that is not available yet.
I'm trying to test using QTP a web app that is using ajax4jsf to
I am still trying to test my WinForm application, however some of the testing
I have a PHP form. The form works but I'm trying to test to
I'm trying replace the index of form elements. I have the following var test
I have an html listbox : <select id=test size=5> <option value=1>1</option> <option value=2>2</option> <option
I'm trying to test a developer's application against a SQL Server 2005 database (80)
I was trying to add coded UI test project to an existing project in

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.