zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

79 results in tag: visual-studio

Creating an Entity Framework 1:1 relationship

I'm trying to define a 1:1 association between two entities (one maps to a table and the other to a view - using DefinedQuery) in an Entity Framework model. When trying to define the mapping for this in the designer, it makes me choose the (1) table or v...
.net ado.net entity-framework visual-studio
asked by Craig Fisher

Entity Model Function Imports with a Non-Entity Return Type

I have a stored procedure in my Entity Data Model and added it to the function imports....Problem is... Visual Studio generates the function code in the model's code-behind if and only if I specify the return to be an entity type. ...Scalar and null retu...
.net .net-3.5 ado.net entity-framework visual-studio
asked by Robert Claypool

"The EntityContainer name must be unique," says an Entity Framework error.

We have a solution which consists of two projects - a console application project and a web application project. Each of these has an identical in schema, but differently named .edmx file used to access the same database....The console application runs as...
.net entity-framework exception-handling visual-studio
asked by ENX

Is there a more efficient approach to update 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 Entit...
entity-framework entity-model project-management visual-studio
asked by Jeremiah

The name of the EntityContainer must be unique. There is already an EntityContainer named 'Entities.'

For a little background:...I have a DLL project with the following structure: ...Rivworks.Model (project) \Negotiation (folder) Model.edmx (model from DB #1) \NegotiationAutos (folder) Model.edmx (model from DB #2) ...I have mov...
.net c# entity-framework exception-handling visual-studio
asked by Keith Barrows

No Tables in VS 2010 Server Explorer Database

I'm working on a .Net application that needs to read from an Oracle 10g database behind Siebel. In VS 2010 Server Explorer, I've created a connection using the OracleClient type connector with a reference to the Oracle TNS service name as the "server nam...
entity-framework oracle server-explorer visual-studio
asked by Andy

Exception code -532462766 complus

Using visual studio 2010, entity framework 4.0, ADO.NET POCO Entity Generator...On the code lines:...MecDbEnt.Domains.AddObject(subject);...MecDbEnt.SaveChanges(); (on this line)...the application throws follow exception:...complus exception code -53246...
c#-4.0 entity-framework exception visual-studio
asked by Masna

'DbContext' was not identified as a type or namespace.

I am VERY new to ASP.NET MVC (3) and am having a hard time resolving a build error in Visual Studio:...The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?)...using System; using System.Col...
asp.net-mvc asp.net-mvc-3 entity-framework visual-studio visual-studio-2010
asked by Chris

The assembly "EntityFramework" could not be found.

I've been working on this MVC 3 application on my home computer for a while now. I'm out of town on a different computer, so I got the project from my source control. This new computer didn't have MVC 3 yet, so I installed it after I copied the project to...
asp.net asp.net-mvc c# entity-framework visual-studio
asked by Steven

To utilize the associated database connection string in Web.config. The mdf database will not operate.

The file neodb.mdf is in my App_Data folder and I can browse the database in the server explorer in visual studio, using built in SQLEXPRESS:...Currently trying to no avail:... <connectionStrings> <add name="EFDbContext" connectionString=".\SQLExpress...
asp.net entity-framework sql-server sql-server-2008 visual-studio
asked by LaserBeak

The FOREIGN KEY requirement in Entity Framework clashed with the INSERT statement.

I have two table Subscription and PackageType. Subs has FK as PackageTypeId. Now when I am inserting a new record in Subscription table using EF 4.1 it is throwing an exception ...The INSERT statement conflicted with the FOREIGN KEY constraint ..."FK_Subs...
asp.net-mvc c# entity-framework linq visual-studio
asked by user946393

Entity Framework 4.2 in Visual Studio 2010

Entity Framework templates and menu items generate errors in Visual Studio 2010 Ultimate on 64-bit XP....The "Reverse Engineer Code First" menu item in Visual Studio tells me that version 4.0.0.0 of System.Data.Entity.dll cannot be found in the GAC, as do...
entity-framework installation visual-studio visual-studio-2010
asked by Paul

"The underlying provider failed on Open" with WCF, Entity Framework, and SQL Server

I am successfully running tests through the the WCF Test Client, until I try to pull in data with Entity Framework....To make sure I'm not doing anything stupid, I downloaded the sample code from this tutorial, which is doing something similar: ...http://...
c# entity-framework sql-server visual-studio wcf
asked by iKode

"Unable to Retrieve Metadata...Config System Failed to Initialize" in MVC "Add Controller"

From scratch, I made a new solution with two projects: one was MVC 3 and the other a supporting EF 4.2 project. The whole thing builds successfully. From the MVC project I open the "Add Controller" dialogue and have it generate code based on the context...
asp.net-mvc entity-framework visual-studio
asked by Brent Arias

The EntityFramework package is not installed on project

I am having trouble getting the EF to install on my very simple project called 'Match' (just now learning MVC, better late than never). The general context here is that I created the Model class with only 2 fields and now I want to change the Model class...
asp.net-mvc entity-framework nuget-package visual-studio
asked by user1016313

Would like to install Entity Framework 5 with VS2012 but I'm lost

I installed Visual Studio 2012 and migrated a project from Visual Studio 2010 with Entity Framework 4.3 and .Net Framework 4.0...Now I would like to reference Entity Framework 5.0 and .Net 4.5 ...BUT when I go to the Manage Nuget Package window and search...
entity-framework visual-studio
asked by Bronzato

mySQL DataSource on Visual Studio 2012

I've been reading about mySQL DataSource and the ability to use mySQL with Entity Framework, but I can't really generate EF with mySQL without the use of the DataSource Dialog...How can I add mySQL Database to such dialog? ...This is what I have done so f...
datasource entity-framework mysql visual-studio
asked by balexandre

Entity Framework generated classes are not in the namespace I require, is there a way of changing the namespace it uses without regenerating?

If I need to regenerate where should the namespace be specified. I am trying to use partial classes from within the Models namespace however they don't match....The simplified code fragment below is where the entity framework classes have been generated..
asp.net-mvc-4 entity-framework namespaces visual-studio
asked by John Fleming

Missing Entity Data Model in VS 2012

I cannot find the Entity Data Model under the 'Data' tab when adding a new item....I have looked at several questions and answers, information on this and none of the solutions have worked....I have repaired, uninstalled and reinstalled, installed the EF ...
c# entity-framework visual-studio visual-studio-2012
asked by Michael

Error 175: The specified store provider cannot be found in the configuration, or is not valid

I just joined a project and installed Microsoft Visual Studio Professional 2012 Version 11.0.51106.01 and Microsoft SQL Server 2008 R2 on a 64-bit machine. ...Another team member is able to build the solution from his machine, but from my machine I get th...
.net entity-framework sql-server-2008-r2 visual-studio
asked by user2283561

Page 1 of 4
  • 1
  • 2
  • 3
  • 4
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!