摘要: 一,矩阵 1.设置行的行的背景颜色(根据条件) 行的颜色,实际并非以行为单位进行设计,而是行列中的文本框, 右击(文本框),选择(文本框属性) -- (填充) -- (填充颜色)--(fx) 点击(fx)后,设计表达式 下图表达式标识,字段s2的值 = 星期日 或者 星期六,则显示为灰色,反之则无颜 阅读全文
posted @ 2021-12-22 09:40 Lin_pin 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 解决方案: Startup.cs 方法-ConfigureServices 添加代码 services.AddDistributedMemoryCache(); services.AddSession(); 方法-Configure 添加代码 app.UseSession(); 阅读全文
posted @ 2021-03-05 09:26 Lin_pin 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1,nuget Swashbuckle.AspNetCore 2,Startup.cs 中方法: ConfigureServices 添加代码 services.AddSwaggerGen();//注册 Swagger 3,Startup.cs 中方法:Configure 添加代码 app.UseS 阅读全文
posted @ 2021-01-27 16:35 Lin_pin 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 一,全局限制 Startup.cs 中 ConfigureServices 方法中添加 services.Configure<FormOptions>(options => { options.MultipartBodyLengthLimit = 50000; }); 二,单页面限制 service 阅读全文
posted @ 2021-01-27 16:20 Lin_pin 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 一,ActionFilterAttribute 1 public class CustomActionFilterAttribute: ActionFilterAttribute 2 { 3 public override void OnActionExecuting(ActionExecuting 阅读全文
posted @ 2021-01-27 15:54 Lin_pin 阅读(141) 评论(0) 推荐(0) 编辑
摘要: C#9.0 //对象声明 Person person1 = new ("111", "222");//语法糖 //静态修饰 Func<int> func = static () => 1; //为空判断 if (name is not null) { } //模式运算 Func<char, Bool 阅读全文
posted @ 2021-01-27 14:34 Lin_pin 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Asp.Net.Core5 内置IOC容器 一,IServiceCollection 依赖注入 仅支持构造函数注入 1,在Startup.cs 中 ConfigureServices方法注入服务 services.AddTransient<Interfaces.IUser, Services.Use 阅读全文
posted @ 2021-01-27 10:53 Lin_pin 阅读(474) 评论(0) 推荐(0) 编辑
摘要: MVC V:视图,呈现给用户看到的(表现层) C:控制器,控制器业务逻辑,返回结果(视图,JSON,字符串等) M :视图模型,-用作控制器和视图之间传递数据的实体 修改视图时,无需编译后才可生效 1,引入nuguet包,Microsoft.AspNetCore.Mvc.Razor.RuntimeC 阅读全文
posted @ 2021-01-23 01:03 Lin_pin 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 脚本启动 1,发布至文件夹-例如:DemoPublic 2,管理员身份运行cmd 3,执行脚本 4,脚本参数格式:--参数名-参数值 例如:--desc="测试站点" dotnet AspNetCore5Demo.dll --urls="http://localhost:99" --port="99 阅读全文
posted @ 2021-01-23 00:33 Lin_pin 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 1,配置文件部分内容--appsettings.json "ConnectionStrings": { "ConnDefault": "123", "ConnList":[ "345", "2343", "0000" ] }, 2,声明实体对象 public class ConnectionStri 阅读全文
posted @ 2021-01-23 00:29 Lin_pin 阅读(153) 评论(0) 推荐(0) 编辑