Top "Entity-framework-6" questions

For questions about the The ADO.

Single transaction over multiple contexts in Entity Framework 6

We have a scenario to save two entities from two contexts in single transaction. Step 1 - SetTransaction(firstContext, true); Step 2 …

c# entity-framework-6
Entity Framework's Entity Data Wizard Crashes When Connecting to MySQL Database

I am attempting to create an Entity Data Model using the wizard to reverse engineer an existing MySQL database. I …

c# mysql visual-studio-2015 entity-framework-6
EF6 and multiple configurations (SQL Server and SQL Server Compact)

Update: Problem solved, see end of this question. The problem: We are trying to use Entity Framework 6 and code-based configuration …

c# entity-framework configuration entity-framework-6
What is the difference between ExecuteSqlCommand vs SqlQuery ? when doing a db access?

I have had a couple of suggestions on how to access data from my database: var allMyIds = context.Database.ExecuteSqlCommand("…

c# asp.net entity-framework sql-server-2012 entity-framework-6
IDENTITY_INSERT during seeding with EntityFramework 6 Code-First

I have an entity that has an Auto-identity (int) column. As part of the data-seed I want to use specific …

c# entity-framework entity-framework-6
How to mark identity column properly with Entity Framework 6.1?

I've seen many posts and answers regarding how to mark a field as the identity column. Many of them are …

.net sql-server entity-framework entity-framework-6 .net-4.6
Concurrency exceptions in Entity Framework

When calling SaveChanges / SaveChangesAsync in Entity Framework (CF, C#), if a change conflict occurs (for example, the values has been …

c# entity-framework entity-framework-6 optimistic-concurrency
Entity framework 6 mocking include method on dbset

Have been googling for a solution to the problem on how to mock the include method on dbset in EF6. …

c# entity-framework-6
How do I remove underscore of foreign key fields in code first by convention

I've got multiple classes (including TPT) in my project. Each POCO has a BaseClass, which has a GUID (called GlobalKey) …

entity-framework naming-conventions code-first entity-framework-6