摘要: 存储日志 public void log(string neirong) { var path = @"D:\xx文件名xx\Log\" + "日志" + ".log"; using (StreamWriter st = new StreamWriter(path, append: true)) { 阅读全文
posted @ 2020-03-05 13:40 Chen0110 阅读(502) 评论(1) 推荐(1) 编辑
摘要: 添加 <script> function saveData() { $.ajax({ url: 'https://localhost:44368/api/UserInfo/Add', type: 'post', data: {UName:$("#UName").val(),Pass:$("#Pass 阅读全文
posted @ 2020-02-18 08:24 Chen0110 阅读(243) 评论(0) 推荐(0) 编辑
摘要: DbContext基类 public class SchoolContext:DbContext { public SchoolContext() : base("school") { }//连接字符串 public virtual DbSet<School> School { get; set; 阅读全文
posted @ 2020-02-17 17:02 Chen0110 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 定义发送邮件事件,这里再次提醒不要忘记QQ邮箱授权码 需要额外加载的类: using System.Net.Mail; using System.Net; private void button1_Click(object sender, EventArgs e) { //实例化一个发送邮件类 Ma 阅读全文
posted @ 2020-01-09 11:23 Chen0110 阅读(218) 评论(0) 推荐(0) 编辑