Top "Entity-framework" questions

Entity Framework is a LINQ-based object-database mapper for .NET.

Entity Framework Code First - two Foreign Keys from same table

I've just started using EF code first, so I'm a total beginner in this topic. I wanted to create relations …

c# entity-framework orm code-first entity-framework-4.1
Keyword not supported: "data source" initializing Entity Framework Context

I'm initializing Entity Framework Object context, and this gives me the keyword not supported error: metadata=res://*/MainDB.csdl|res://*/…

entity-framework connection-string
Entity Framework Refresh context?

How could I refresh my context? I have entities based on views from my Database and when I made an …

c# asp.net entity-framework
how to update the multiple rows at a time using linq to sql?

Table: id userid friendid name status 1 1 2 venkat false 2 1 3 sai true 3 1 4 arun false 4 1 5 arjun false if user sends userid=1,friendids=2,4,5 status=…

c# linq entity-framework linq-to-sql
ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value

In a nutshell the exception is thrown during POSTing wrapper model and changing the state of one entry to 'Modified'. …

c# asp.net-mvc entity-framework
How do I get the entity that represents the current user in Symfony2?

I am using the Symfony security setup. Everything works fine, but I don't know how to do one important thing: …

entity-framework security symfony
"Items collection must be empty before using ItemsSource."

I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old …

.net wpf vb.net entity-framework binding
The object 'DF__*' is dependent on column '*' - Changing int to double

Basically I got a table in my EF database with the following properties: public int Id { get; set; } public string …

sql sql-server database entity-framework entity-framework-4
What difference does .AsNoTracking() make?

I have a question regarding the .AsNoTracking() extension, as this is all quite new and quite confusing. I'm using a …

c# .net entity-framework entity-framework-4.3
How to Create a real one-to-one relationship in SQL Server

I have two tables tableA and tableB, I set tableB's primary key as foreign key which references tableA's primary. But …

sql sql-server entity-framework one-to-one