相关疑难解决方法(0)

EF 4.1 - 模型关系

我正在尝试使用RC版本的RS 4.1创建一个快速的ASP.NET MVC 3应用程序.我有两个型号:

public class Race
{
    public int RaceId { get; set; }
    public string RaceName { get; set; }
    public string RaceDescription { get; set; }
    public DateTime? RaceDate { get; set; }
    public decimal? Budget { get; set; }
    public Guid? UserId { get; set; }
    public int? AddressId { get; set; }

    public virtual Address Address { get; set; }
}
Run Code Online (Sandbox Code Playgroud)

和

public class Address
{
    public int AddressId { get; set; }
    public string …
Run Code Online (Sandbox Code Playgroud)

entity-relationship entity-framework-4 ef-code-first entity-framework-4.1 asp.net-mvc-3

21
推荐指数
4
解决办法
2万
查看次数