摘要:
--添加方法(后端) 1、Model层添加字段属性 [Table("Student")] public class Student { [Key] public int SId { get; set; } public string SName { get; set; } public string 阅读全文
posted @ 2021-07-15 19:29
奋斗中的小姬
阅读(57)
评论(0)
推荐(0)
摘要:
创建框架 一、新建Models 中实体类 在类中添加特性,添加特性之前需要引用命名空间 using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema; 1、类的上边 [Ta 阅读全文
posted @ 2021-07-15 19:27
奋斗中的小姬
阅读(66)
评论(0)
推荐(0)

浙公网安备 33010602011771号