Questions tagged [entity-model]

The Entity data model (EDM) specifies the conceptual model (CSDL) of the data, using a modelling technique that is itself called Entity Data Model, an extended version of the Entity-Relationship model

The Entity Framework is a set of technologies in ADO.NET that support the development of data-oriented software applications. Architects and developers of data-oriented applications must model the entities, relationships, and logic of the business problems they are solving, and they must also work with the data engines used to store and retrieve the data. The Entity data model (EDM) specifies the conceptual model (CSDL) of the data, using a modelling technique that is itself called Entity Data Model, an extended version of the Entity-Relationship model.

http://en.wikipedia.org/wiki/Entity_Framework#Entity_Data_Model

53 questions
30
votes
3 answers

Can't find ADO.NET Entity Model Browser Window in vs2010

I want to update my ADO.NET Entities Framework Model from the database, but I cannot find the Entity Model Browser Window. There is an example of how to update my model here, but I cannot find how to open the model browser. Could someone please tell…
John Fischer
  • 1,115
  • 3
  • 13
  • 24
20
votes
9 answers

Could not find the conceptual model type

I have two Entity Data models within a MVC3 project A and B. I have recently added the new entity data model B to deal with some new functionality, the issue is that now the existing code has stopped working and I am getting the following error when…
Matt Seymour
  • 8,880
  • 7
  • 60
  • 101
18
votes
5 answers

Tables don't show when re-adding them to entity-model (edmx)

I have a db with 5 tables. At the beginning, I've added those tables in, but then decided to remove some due to some relationship compile error. Now, when i want to add them back, i'm opening the edmx file -> update model from database... I don't…
Or A
  • 1,789
  • 5
  • 29
  • 55
16
votes
2 answers

How to update correctly an Entity Model after changes of database structure?

I've made some changes in the table structure and especially the relationships between tables in my SQL Server database. Now I want to update my Entity model based on this new database structure. Right clicking on the edmx file I find the option…
Slauma
  • 175,098
  • 59
  • 401
  • 420
13
votes
2 answers

Entity Model Issue: Not able to create model for one particular table

While creating the entity model I am getting the following error . Added the connection string to Web.Config. Successfully registered the assembly 'System.Data.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' in…
Ritz
  • 141
  • 1
  • 3
9
votes
1 answer

Does the length field on the javax.persistence @Column define max?

I have this code: public class Item { @Column(name = "serialNo", length = 12) public String getSerialNo() { return this.serialNo; } public void setSerialNo(String serialNo) { this.serialNo = serialNo; …
Carlos Jaime C. De Leon
  • 2,476
  • 2
  • 37
  • 53
8
votes
4 answers

Entity framework loads navigation properties without asking for them

While working in a project I saw a strange behaviour I cannot understand with the loading of navigation properties. Here is a small example that reproduces this "problem". I want to load a Year, without including data of the company(navigation…
blfuentes
  • 2,731
  • 5
  • 44
  • 72
5
votes
2 answers

Exclude or Ignore Property of an Entity model if column is not exist in database table

I have added new property in my Entity Model as the new column has got added in DB table. But In that column might or might be there in other client database. So, How handle this? I have tried modelBuilder.Entity().Ignore(customer =>…
Sherlock
  • 499
  • 1
  • 7
  • 18
4
votes
1 answer

Entity Designer for .edmx file doesn't work in VS2010

I have a .edmx file and I can't open it with the designer. It just opens as plain XML file. When I try to "run custom tool" on it, then it says that: The custom tool 'EntityModelCodeGenerator' failed. Could not load file or assembly…
Bogdan Verbenets
  • 25,686
  • 13
  • 66
  • 119
3
votes
1 answer

Why does my WCF Service not use my Entity Model?

I got a problem on using WCF service and Entity Model with together. I have created an Entity Model from my existing database. This can be shown below; There isn't any problem while using my classes in any console applicaton coming from "Entity…
kkocabiyik
  • 4,246
  • 7
  • 30
  • 40
3
votes
1 answer

Visual Studio 2010's generate model from database gives error message when trying to connect to DB with MySQL ADO.NET drivers, how to fix?

I am trying to generate my ADO.NET entity model from my MySQL database using the official Connector/Net 6.4.3 ADO.NET drivers from MySQL. However, after I type in my DB-info, and click next (Test Connection reports successful connection), I get the…
3
votes
3 answers

Always 'Entity first' approach, when designing java apps from scratch?

I'm just reading the book here: http://www.amazon.com/Java-Architects-Handbook-Second-Edition/dp/0972954880/ trying to find a strategy about how to efficiently design a (generic) medium to large application (200 tables or more) - for instance a…
3
votes
1 answer

How to use SQL Server Database Project in other Projects in Visual Studio?

Always in my projects i add a ADO.net Data Model (from database connection) to my Data Access Layer Project that i named it DataProject, but now i need to use SQL Server Databse project that i named it SQLDatabaseProject. Now, i want how can i make…
Mehdi Yeganeh
  • 2,019
  • 2
  • 24
  • 42
3
votes
3 answers

Is there a better way to refresh Entity Models (*.edmx files)

I need to refresh a bunch of EDMX files in my solution. We have disected our tables into groups and each model represents one component or process. However, there are some overlapping tables, which means sometimes I need to refresh/update multiple…
2
votes
2 answers

Is it possible to have two Entity Models from two databases in one project?

I used to have one Working edmx model with WCF service. Then I've added another Entity Model pointing another connection. I will try to explain in nutshell what is happened in app.config. there is still being one connectionString with old name but…
cnd
  • 32,616
  • 62
  • 183
  • 313
1
2 3 4