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