I have two simple classes generated by code first. public class Company { public int Id { get; set; } public string Name { get; set; }
Below are two similar fluent API configurations: WithMany() modelBuilder.Entity<Country>() .HasRequired(cou => cou.Currency)
I have a very simple model that maps to one table (Projects) in my database. I have chosen to abstract out images to its own class.
I am using the Generic Repository pattern on top of Entity Framework Code First. Everything was working fine until I needed to include more entities in a query. I got to include one entity successfull
I\'ve spent quiet some time building my Domain Model (using EF CTP5 Code First), and now I thought I\'d through some test data and see if everything works. Unfortunately, it seems like my application
Can anybody tell me the real benefit of keeping Entity Framework model metadata in a database table (it does this using a default convention)?
I have to admit, the features of EF 4.1 RC Codefirst, DataAnnotations and FluentAPI are still overwhelming to me. Sometimes I really don\'t know what I am doing ;-) Please see the following POCOs:
I\'m trying to get CodeFirst working, and am having a problem with foreign keys and related objects.It is likely due to my not matching the \"convention\" and not yet understanding how to properly ove
I have two classes: public class Company { public int Id { get; set; } public string Name { get; set; } public virtual ICollection<User> Users { get; set; }
Using Entity Framework 4 and code first how would I create a model that supports this scenario: In an application, there are users, each user belongs to one or more groups and for each group the use