摘要: 一、新建Models 中实体类 在类中添加特性,添加特性之前需要引用命名空间 using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema; 添加外键导航:[Foreign 阅读全文
posted @ 2021-07-15 20:54 古之召虎 阅读(105) 评论(1) 推荐(2)