Top "Entity-framework-4.1" questions

This tag is for the ADO.

Entity Framework Code First Date field creation

I am using Entity Framework Code First method to create my database table. The following code creates a DATETIME column …

c# entity-framework entity-framework-4.1 code-first sqldatatypes
How to delete child entities before parent with Entity Framework CF?

I am trying to use EF code-first to delete a db record (deleteMe) and it's children (deleteMe.Prices). foreach (var …

database entity-framework entity-framework-4.1
How to filter nested collection Entity Framework objects?

Here is the problem: I need to return a collection of objects with filtered nested collections. E.g: there is …

linq entity-framework entity-framework-4.1 filtering
Getting exact error type in from DbValidationException

I have the situation where I'm initializing my model in DatabaseInitializer() for EF 4.1 and get this annoying error "Validation failed …

.net entity-framework entity-framework-4.1 ef-code-first
Composite Key with EF 4.1 Code First

I am trying to figure out how to have a composite key using EF code First 4.1 RC. Currently, I am …

ef-code-first composite-key entity-framework-4.1
Entity Framework: Querying Child Entities

I'm learning about Entity Framework at the mo, and am having problems!! Can someone clarify if I am right in …

entity-framework linq-to-entities entity-framework-4.1
How to retrieve last 5 records using LINQ method or query expression in C#

On my homepage, I want to show the recently added products. I have added a ChildAction to my controller but …

c# linq entity-framework-4.1
Turn off EF change tracking for any instance of the context

I have a context to a read-only database for reporting and I am writing lots of code, like this: using (…

c# entity-framework entity-framework-4.1 change-tracking
Should I enable or disable dynamic proxies with entity framework 4.1 and MVC3?

Could someone offer up some advice or point out some blogs/articles that could help with making this decision? The …

entity-framework orm entity-framework-4.1 ef-code-first dynamic-proxy
How to retrieve Data Annotations from code? (programmatically)

I'm using System.ComponentModel.DataAnnotations to provide validation for my Entity Framework 4.1 project. For example: public class Player { [Required] [MaxLength(30)] […

c# entity-framework-4.1 data-annotations