摘要: --做一个类似下拉的功能条件 @foreach (var item in ViewBag.type) { <a href="/Info/Show?tid=@item.TId&Name=@Request["Name"]">@item.TName</a> } <a href="/Info/Show">全 阅读全文
posted @ 2021-07-17 11:27 奋斗中的小姬 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 超级细致体验版本 1--首先在Model层创建a56爆大奖在线娱乐们需要的字段和表 [Table("Info")] public class InfoModel { [Key] public int Id { get; set; } public string Type { get; set; } public st 阅读全文
posted @ 2021-07-16 16:37 奋斗中的小姬 阅读(79) 评论(0) 推荐(0) 编辑
摘要: --添加方法(后端) 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 奋斗中的小姬 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 创建框架 一、新建Models 中实体类 在类中添加特性,添加特性之前需要引用命名空间 using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema; 1、类的上边 [Ta 阅读全文
posted @ 2021-07-15 19:27 奋斗中的小姬 阅读(49) 评论(0) 推荐(0) 编辑