Questions tagged [ado.net-entity-data-model]

Covers the Entity Data Model-part of ADO.NET

Covers the Entity Data Model-part of ADO.NET

510 questions
38
votes
8 answers

Oracle ODP.Net With Entity Framework 6 - Entity framework database compatible provider could not be found

I am trying to build an MVC 5 Web application with Entity Framework 6 that works on Oracle Database , am trying to use ODAC 12c Release 3 which includes support for Entity Framework 6 Code First and Code First Migrations; NuGet, .NET Framework…
32
votes
3 answers

there is no ado.net entity data model in visual studio

After installed Visual Studio 2013 and create a new MVC4 internet application project : Visual Studio Doesn't have Ado.net Entity Data Model when i click on add->new item-> Why? I reinstall it but ther is no change ...
user2830448
  • 407
  • 1
  • 7
  • 19
31
votes
8 answers

Entity Framework Migrations Error - Sequence contains no elements

command: add-migration blahblah -verbose error: Sequence contains no elements I did a few things before getting this error. I made a change to my code-first model but did not runadd-migration yet. Then I added an EDMX model to play around with an…
29
votes
13 answers

Missing "Ado.Net Entity Data Model" on Visual Studio 2013

I have created new web project but I can't find ADO.net Entity DAta Model to add it. How to fix it or Install it ?
Chlebta
  • 2,949
  • 12
  • 44
  • 96
28
votes
13 answers

Can't Create Entity Data Model - using MySql and EF6

I'm trying to add an edmx Entity model to my C#/Web Project in Visual Studio 2013. My problem is that the file is not created. I do the following steps: Give the item a name Choose 'EF Designer from database' Choose the connection from the drop…
27
votes
2 answers

Entity Framework 4: Does it make sense to create a single diagram for all entities?

I wrote a few assumptions regarding Entity Framework, then a few questions (so please correct where I am wrong). I am trying to use POCOs with EF 4. My assumptions: Only one data context can exist for an EF diagram. Data Contexts can refer to more…
Zachary Scott
  • 20,070
  • 32
  • 114
  • 195
27
votes
8 answers

ADO.NET Entity Connection String for Multiple Projects

I am using multiple layer project where the DataModel hosts the ADo.NET Entity model and DataAccess layer does the validation. However everytime I get a error like this The specified named connection is either not found in the configuration, not…
22
votes
7 answers

References for DBContext, DBSet<> in Entity Framework

I am trying to use ADO.Net Codefirst feature of latest Entity Framework 4.0. As part of that I have installed Entity Framework CTP 4 from Microsft and using Scott's tutorial to create the model first. Inside the tutorial DBContext and DBSet<> is…
19
votes
1 answer

Columns of two related database tables in one ASP.NET GridView with EntityDataSource

I have two SQL Server tables with Primary Keys (PK) and a Foreign Key (FK) linking the two tables: 1) Table "Order" OrderID, int, PK AddressID, int, FK ... 2) Table "Address" AddressID, int, PK City, nvarchar(50) ... Then I've created an…
Slauma
  • 167,754
  • 56
  • 385
  • 407
18
votes
9 answers

Your project references the latest version of Entity Framework... - Error

I trying to create an entity data model with Oracle. I am getting this error. I have these installed for my solution. I have also installed ODT for VS 2015. These are my references showing. Web.config
17
votes
2 answers

Entity Framework - CSDL, SSDL, and MSL files

I'm just being picky but I was researching how does Entity Framework generates the DLL from an EDMX file and I saw this on msdn: The Entity Data Model Designer (Entity Designer) stores model and mapping information in an .edmx file at design time.…
Diego
  • 31,278
  • 18
  • 81
  • 126
16
votes
6 answers

Entity Framework: Setting a Foreign Key Property

We have a table that looks roughly like this: CREATE TABLE Lockers { UserID int NOT NULL PRIMARY KEY (foreign key), LockerStyleID int (foreign key), NameplateID int (foreign key) } All of the keys relate to other tables, but because of the…
Rob
  • 2,796
  • 2
  • 20
  • 25
16
votes
5 answers

Returning datatable using entity framework

I am using entity framework. There is one particular situation in my application where I have to use a stored procedure. Since there are a lot of SQL statements written in the SP, I don't want to re-write it in my C# code. I only need to get the…
user1640256
  • 1,543
  • 7
  • 20
  • 42
16
votes
9 answers

Metadata file not found - Data.Entity.Model

Anyone having similar problem, while creating webservices? Compiling transformation: Metadata file 'D:\Program Files\VS2013\Common7\Tools..\IDE\Microsoft.Data.Entity.Design.dll' could not be found D:\PROJEKTY\apki\ws2\WS\WS\DataModel.tt I…
15
votes
1 answer

Entity framework: StoreGeneratedPattern="Computed" property

I have a DateTime property. I need this property's default value to be DateTime.Now. And then I found out that you can specify an attribute StoreGeneratedPattern="Computed" and set it to (getdate()) in SQL. This works successfully. But I can't…
ebattulga
  • 9,573
  • 19
  • 76
  • 111
1
2 3
33 34