Top "Entity-framework-4" questions

A tag for ADO.

The version of SQL Server in use does not support datatype datetime2?

An error occurred while executing the command definition. See the inner exception for details. bbbbInnerException:aaaa System.ArgumentException: The version …

sql sql-server entity-framework entity-framework-4 linq-to-entities
LINQ many-to-many relationship, how to write a correct WHERE clause?

I use many-to-many relationship for my tables. There is a query: var query = from post in context.Posts from tag …

c# linq entity-framework-4 dbcontext
Entity Framework - Inserting records in child table when parent record already exists

Good afternoon- I am developing a Silverlight application using LINQ to Entity Framework for the data access layer. My n-tier …

entity-framework-4 parent-child wcf-data-services
A lambda expression with a statement body cannot be converted to an expression tree in nopCommerce

I try to create a linq join query in the nopCommerce 3.0. i join two table in linq and write the …

c# asp.net-mvc-3 linq entity-framework-4 nopcommerce
Using System.ComponentModel.DataAnnotations with Entity Framework 4.0

I'm working with MVC3, and using Entity Framework 4.0 Entities as my model. So far, everything works great as far as …

asp.net-mvc asp.net-mvc-3 c#-4.0 entity-framework-4
Primary /Foreign Key in Entity Framework

I have created an entity class in my MVC 3 application. One of the attribute named RegistryId is primary key as …

entity-framework-4 ef-code-first entity-framework-4.1
Using Automapper to update an existing Entity POCO

I am using EF4 DbContext to provide the model for an ASP.NET MVC app. I use ViewModels to provide …

asp.net-mvc entity-framework-4 viewmodel automapper dbcontext
Code First adding to collections? How to use Code First with repositories?

EDIT: This happen only on larger scale projects with repositories. Is there anybody using EF4 with CodeFirst approach and using …

entity-framework asp.net-mvc-2 entity-framework-4 code-first
Correct disposing using Repository and Unit Work patterns with Entity Framework?

Cheers!I have some doubts about using Unit of Work with Repository. Specially a role of child context from Entity …

c# entity-framework-4 repository dispose unit-of-work
How do I find a specific table in my EDMX model quickly?

I was wondering if anyone knows a quicker way to find a table in the EDMX model than just scrolling …

c# vb.net entity-framework-4 edmx edmx-designer