摘要: @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) 编辑