EF 4.1 - Model Relationships

前端 未结 6 509
情书的邮戳
情书的邮戳 2021-01-03 21:06

I\'m trying to create a quick ASP.NET MVC 3 application using the RC version of EF 4.1. I have two models:

public class Race
{
    public int RaceId { get; s         


        
6条回答
  •  不知归路
    2021-01-03 22:08

    There is a good post: Associations in EF Code First CTP5: Part 2 – Shared Primary Key Associations

    http://weblogs.asp.net/manavi/archive/2010/12/19/entity-association-mapping-with-code-first-one-to-one-shared-primary-key-associations.aspx

提交回复
热议问题