摘要: 邮件发送的页面 <!DOCTYPE html><html><head> <meta charset="utf-8" /> <link href="bootstrap-3.3.7/css/bootstrap.css" rel="stylesheet" /> <script src="Scripts/j 阅读全文
posted @ 2020-06-26 20:56 我是一只快乐的码农 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 类别 /// <summary> /// 用户类 /// </summary> [Table("TB_User")] public class UserModel { [Key] public int UId { get; set; } public int UName { get; set; } 阅读全文
posted @ 2020-06-26 20:53 我是一只快乐的码农 阅读(251) 评论(0) 推荐(0) 编辑
摘要: @model IEnumerable<G6.Model.UserModel> @{ Layout = null;} <!DOCTYPE html> <html><head> <meta name="viewport" content="width=device-width" /> <title>In 阅读全文
posted @ 2020-06-17 08:29 我是一只快乐的码农 阅读(174) 评论(0) 推荐(0) 编辑
摘要: //获取泛型T的类型 Type type = typeof(T); //循环获取到的数据的行 for (int i = 0; i < dt.Rows.Count; i++) { //实例化获取到的类 object obj = Activator.CreateInstance(type); //循环获 阅读全文
posted @ 2020-06-17 08:05 我是一只快乐的码农 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Contorller中 using System;using System.Collections.Generic;using System.Linq;using System.Threading.Tasks;using G3.IDAL;using G6.Model;using Microsoft. 阅读全文
posted @ 2020-06-17 08:00 我是一只快乐的码农 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-06-16 21:01 我是一只快乐的码农 阅读(78) 评论(0) 推荐(0) 编辑
摘要: SqlDal中public int AddUser<T>(T model) where T : class, new() { return connection.Execute(GetSQLStr<T>(model)); } public List<T> GetList<T>() where T : 阅读全文
posted @ 2020-06-16 20:42 我是一只快乐的码农 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 数值验证码 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button1_Click(object sender, EventA 阅读全文
posted @ 2020-06-16 16:39 我是一只快乐的码农 阅读(136) 评论(0) 推荐(0) 编辑