Top "Entity-framework-4" questions

A tag for ADO.

Calling scalar function from c# using Entity Framework 4.0 / .edmx

I would like to map my scalar function to my .edmx but it fails. I right click on my entity …

c# entity-framework-4 user-defined-functions
What is Entity Framework fluent api?

I keep hearing about the Entity Framework fluent-api but I am struggling to find a good reference on this. What …

c# entity-framework orm entity-framework-4 ef-fluent-api
ADO.NET DbContext Generator vs. ADO.NET Poco Entity Generator (ObjectContext)

I am about to start implementing the data access infrastructure of a project that was architected with an approach to …

entity-framework entity-framework-4 entity-framework-4.1
what is the most reasonable way to find out if entity is attached to dbContext or not?

when i try to attach entity to context i get an exception An object with the same key already exists …

c# entity-framework-4 ef-code-first
Add Controller Model Classes not shown

I managed to create a Model First DBContext model (before it was a normal ObjectContext derived model). Strangly now my …

asp.net-mvc visual-studio-2010 entity-framework-4 scaffolding
Add the where clause dynamically in Entity Framework

I have this sql statement SELECT userID from users WHERE (name='name1' AND username='username1') OR (name='name2…

c# linq entity-framework-4
How to create immutable objects in C#?

In a question about Best practices for C# pattern validation, the highest voted answer says: I tend to perform all …

c# validation entity-framework-4 immutability
Using Entity Framework with an SQL Compact Private Installation

I am using Entity Framework 4 in a desktop application with SQL Compact. I want to use a private installation of …

entity-framework sql-server-ce entity-framework-4
.net MVC Simple Membership Authentication with Database

Using Code First Entity Framework with .NET MVC 4 I have created a new Web Application and populated the database with …

c# asp.net-mvc authentication entity-framework-4 membership-provider
How can I use a stored procedure + repository + unit of work patterns in Entity Framework?

I have MVC web application project with Entity Framework code first. In this project I am going to use generic …

entity-framework entity-framework-4 ef-code-first repository-pattern unit-of-work