小编Sam*_*ran的帖子

每个表只允许一个标识列

我有这门课:

public  class Comment
{
    public virtual int Id { get; set; }
    public string Body { get; set; }
    public DateTime AddDate { get; set; }
    [ForeignKey("PostId")]
    public virtual Post Post { get; set; }
    public int PostId { get; set; }
    public virtual bool IsApproved { get; set; }
    public virtual int LikeCount { get; set; }
    public int? ParentId { get; set; }
    public virtual Comment Parent { get; set; }
    public ICollection<Comment> Children { get; set; …
Run Code Online (Sandbox Code Playgroud)

c# fluent code-first ef-code-first

3
推荐指数
1
解决办法
6922
查看次数

标签 统计

c# ×1

code-first ×1

ef-code-first ×1

fluent ×1