阅读背景:

如何在实体框架中获取详细信息数据

来源:互联网 

i have two models

我有两个型号

public class Product
{
    public int ProductId { get; set; }

    [Required]
    public string Name { get; set; }

    public string Category { get; set; }

    public int Price { get; set; }

    //Navigation Property
    public ICollection<Review> Reviews { get; set; }
}


 public class Review
{
    public int ReviewId { get; set; }

    public int ProductId { get; set; }

    [Required]
    public string Title { get; set; }

    public string Description { get; set; }

    //Navigation Property
    public Product Product { get; set; }
}
public class Produ



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: