Top "Entity-framework-4" questions

A tag for ADO.

C# How to use DataAnnotations StringLength and SubString to remove text

I have a model classes that has a description property with a data annotation attribute of StringLength and length is …

c# entity-framework entity-framework-4 code-first
Entity Framework 4 / Linq: How to convert from DateTime to string in a query?

I have the following query: from a in Products select new ProductVM { id = a.id, modified = a.modified.ToString() } Which …

entity-framework-4 linq-to-entities tostring
How change tracking works in Entity Framework

Given the following code, how does EF/DbContext knows about the change made to the customer object: class Program { static …

c# entity-framework-4 dbcontext change-tracking
Upgrade EF 4 EDMX to EF 6

My application is using a database first EDMX in EF 4. I would like to upgrade everything to EF 6. After getting …

entity-framework entity-framework-4 entity-framework-6
How do I concatenate strings in Entity Framework Query?

How do I concatenate strings in Entity Framework 4 I have a data from a column and I want to save …

sql entity-framework entity-framework-4 aggregate string-concatenation
Connection string for using SQL Server Compact with Entity Framework?

I'm done trying to Google for this. I have installed SQL Server CE 4.0, and have EF 4.1, but I can't get …

entity-framework-4 sql-server-ce
Using MySql with Entity Framework 4 and the Code-First Development CTP

I thought I'd experiment a bit with Scott Guthrie's latest post on code-first dev with Entity Framework 4. Instead of using …

mysql asp.net-mvc entity-framework-4 code-first ctp
Adding items to a collection using Entity Framework

I'm trying to follow the DDD Repository pattern with Entity Framework 4. But I'm having problems saving changes to collection properties …

c# .net entity-framework-4 domain-driven-design ddd-repositories
Entity Framework 6 Error Unable to load the specified metadata resource

I'm using Entity Framework 6 and "model first" in my solution, I separated my "Data Model" classes into another project, so …

c# entity-framework entity-framework-4 entity-framework-5 entity
Why does Entity Framework's EF Migrations Add-Migration step require a database connection string?

I am trying to use and understand EF Migrations (using EF 4.3.1, Code First). In order to scaffold a new change, …

entity-framework-4 entity-framework-4.3 entity-framework-migrations