摘要: public class BaseController<T> : Controller where T : class, new() { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用基础方法 /// <summary> /// 新增 /// </ 阅读全文
posted @ 2020-09-01 16:30 妖狐鬼魅 阅读(198) 评论(0) 推荐(0) 编辑
摘要: @{ ViewBag.Title = "测试页"; Layout = "~/Views/Shared/_LayoutPage.cshtml"; } <div> 上传文件 <input type="file" id="file" /> <br /> <input type="button" id="u 阅读全文
posted @ 2020-09-01 14:13 妖狐鬼魅 阅读(252) 评论(0) 推荐(0) 编辑
摘要: public class BaseApiController<T> : ApiController where T : class { BaseDal<T> baseDal = new BaseDal<T>(); #region 通用Api /// <summary> /// 新增 /// </su 阅读全文
posted @ 2020-09-01 14:06 妖狐鬼魅 阅读(451) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 分页查询获取数据实体 /// </summary> /// <typeparam name="T"></typeparam> public class PageDataView<T> { private int _TotalNum; public PageData 阅读全文
posted @ 2020-09-01 13:57 妖狐鬼魅 阅读(156) 评论(0) 推荐(0) 编辑
摘要: public class BaseDal<T> where T : class { #region 通用方法 /// <summary> /// 新增 /// </summary> /// <param name="model"></param> /// <returns></returns> pu 阅读全文
posted @ 2020-09-01 13:55 妖狐鬼魅 阅读(244) 评论(0) 推荐(0) 编辑
摘要: public class DbHelper { static string connstr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; //public static IDbConnec 阅读全文
posted @ 2020-09-01 13:53 妖狐鬼魅 阅读(488) 评论(0) 推荐(0) 编辑