Using the following classes by convention EF will create the tables and PK/FK associations correctly.However when i add data the to photos collection and save the entities the data in the Photos table
Another \'Entity Type \'x\' has no key defined\' question, but I\'ve set the [Key] attribute on a property so I\'m a bit confused.
I have a class in my model that can refer to the same child class from two different FK associations/fields. Both of these references are populated with the same instance of the child object when the
I\'m developing an application using Entity Framework 4.1 Code First. The problem is when I try to group a query, it automatically adds an order by using the group key, overriding previous orderby sta
I\'m trying out the new scaffolding features in MVC 3, using Entity Framework Code First. My model looks like this:
I use EF code-first 4.1. in my application. Now I want to get entities through WCF services using generic types.
I\'m developing an ASP.NET MVC 3 website with Entity Framework Code-First. What\'s happening is that in the Index action, I get some TransactionJournal objects from the database, call a method called
I have class post: public class Post { [Key] public int PostID { get; set; } [DisplayName(\"Text komentáře\")]
I am getting the following exception when attempting to save my entity: \"AcceptChanges cannot continue because the object\'s key values conflict with anotherobject in the ObjectStateManager. Make su
Is it possible to define a many-to-many relationship in Entity Framework 4.1 (Code First approach) using Data Annotations only, without model builder?