Top "Entity-framework-4" questions

A tag for ADO.

EF 4: Removing child object from collection does not delete it - why?

I use Entity Framework 4 and I have parent - child relation with "Cascade Delete" set. So i would expect when …

linq entity-framework entity-framework-4
Entity Framework - Already Defined

I have a problem with an EDMX file which I've never encountered before. Seemingly randomly when the site is running …

c# .net entity-framework entity-framework-4 edmx
Map two different entities to the same table?

I have a table in my database with a lot of fields. Most of the time I need all those …

entity-framework entity-framework-4
Entity Framework 4 and SQL Compact 4: How to generate database?

I am developing an app with Entity Framework 4 and SQL Compact 4, using a Model First approach. I have created my …

entity-framework entity-framework-4 sql-server-ce
How can I upgrade my Sql Server CE 3.5 sdf database to Sql Server CE 4.0?

I need to update my SqlCE3.5 database to 4.0. I get the following error message when I'm trying to access my 3.5 …

visual-studio-2010 entity-framework-4 sql-server-ce sql-server-ce-4
How to update entities which are modified outside the DbContext?

I've a small problem with updating entities if the entity is changed outside the DbContext (is a detached entity). If …

c# entity-framework entity-framework-4 code-first
Check if there are any pending changes to be saved

Is there a way to find out whether there are unsaved changes in my entity context, in the Entity Framework?

entity-framework entity-framework-4 entity-framework-5 entity-framework-6
How to get original values of an entity in Entity Framework?

In EF 4.0, if I understand it right, there are two type of values in Entity : current values and original values. …

entity-framework-4 entity
SQL 'time' type in Entity Framework Code First

I'm trying to create a 'time(7)' column in a table with Entity Framework Code First. This is my Entity: …

.net entity-framework entity-framework-4 ef-code-first code-first
Entity Framework Thread Safety

The context objects generated by Entity Framework are not thread-safe. What if I use two separate entity contexts, one for …

c# concurrency entity-framework-4 thread-safety datacontext