打赏

随笔分类 -  MVC

摘要:环境: .net core 3.1 MSSSQL , MYSQL MVC EFCore AutoFac 前言: 不同的框架主要解决开发中出现的不同的问题,本框架主要解决多个项目在开发过程中多个模块的重复使用造成冗余和不便于管理。 项目适用背景: 1.不同项目之间业务逻辑有所关联并不是完全独立的项目 阅读全文
posted @ 2020-12-28 17:24 Bear.Tirisfal 阅读(1181) 评论(0) 推荐(0) 编辑
摘要:控制器相关中:HttpContext来获取实例 HttpContext下有一个RequestedService同样可以用来获取实例对象 IUserDAL userDAL = HttpContext.RequestServices.GetService(typeof(IUserDAL)) as IUs 阅读全文
posted @ 2020-11-11 15:52 Bear.Tirisfal 阅读(3442) 评论(0) 推荐(0) 编辑
摘要:.net core 3.x 对插件化开发还是比较友好 静态资源使用RCL Content 中提到的方法 只要通过 _content/{areaName}/ 就能访问对应 areaName 中的静态资源。 发布时会自动生成 _content目录 目前框架结构如下: mvc. web为入口模块,core 阅读全文
posted @ 2020-11-05 17:12 Bear.Tirisfal 阅读(308) 评论(0) 推荐(0) 编辑
摘要:public testContext() : base(GetConnection(), true) { } public static DbConnection GetConnection() { var providerName = ConfigurationManager.Connection... 阅读全文
posted @ 2018-06-29 14:47 Bear.Tirisfal 阅读(1345) 评论(0) 推荐(0) 编辑
摘要:首先是拦截器 登陆验证代码 阅读全文
posted @ 2017-06-22 19:51 Bear.Tirisfal 阅读(836) 评论(0) 推荐(0) 编辑
摘要:/// /// JsonModelBinderAttribute /// author:BearLee /// 2015/5/20 11:48:40 /// public class JsonModelBinderAttribute : CustomModelB... 阅读全文
posted @ 2015-12-20 10:11 Bear.Tirisfal 阅读(250) 评论(0) 推荐(0) 编辑
摘要:@model Gd.NetSign.Controllers.DTO.WsaleFundManageDTO@{ ViewBag.Title = "ShowDUYUN"; //Layout = "~/Views/Masters/Frame.cshtml";} ... 阅读全文
posted @ 2015-05-15 17:08 Bear.Tirisfal 阅读(3719) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示