摘要: alter table table_name alter column column_name 数据类型(int,varchar等等) not null --.............................修改列.......增加属性--增加属性use srs --指定使用的数据库alte 阅读全文
posted @ 2022-05-21 10:06 疾风回荡寻真途 阅读(64) 评论(0) 推荐(0) 编辑
摘要: <script> layui.use(['form', 'table', 'tablePlug', 'kpForm'], function () { var $ = layui.jquery, form = layui.form, table = layui.table, kpForm = layu 阅读全文
posted @ 2022-04-28 15:19 疾风回荡寻真途 阅读(1531) 评论(0) 推荐(0) 编辑
摘要: templet: "<div>{{layui.util.toDateString(d.InteractCreateTime, 'yyyy-MM-dd HH:mm:ss')}}</div>", 阅读全文
posted @ 2022-04-25 11:43 疾风回荡寻真途 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一、在Startup.cs文件中配置 public void ConfigureServices(IServiceCollection services) { // needed to load configuration from appsettings.json services.AddOpti 阅读全文
posted @ 2021-11-26 10:43 疾风回荡寻真途 阅读(42) 评论(0) 推荐(0) 编辑
摘要: AutoFac简单使用 安装nuget包 1.1.Autofac 1.2.Autofac.Extensions.DependencyInjection 接管.net core 自带的依赖注入方式 修改Program.cs public static IHostBuilder CreateHostBu 阅读全文
posted @ 2021-10-22 19:57 疾风回荡寻真途 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 安装 Microsoft.Extensions.Caching.StackExchangeRedis 包 //分布式缓存 services.AddStackExchangeRedisCache(options => { //获取连接字符串 options.Configuration = Config 阅读全文
posted @ 2021-10-19 21:08 疾风回荡寻真途 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 一、下载NuGet包 NLog.Web.AspNetCore NLog 二、创建一个 nlog.config 文件 在项目的根目录中创建 nlog.config(全部小写)文件 例子如下: <?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="ht 阅读全文
posted @ 2021-10-18 21:07 疾风回荡寻真途 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 一、EF Core .net Core 使用 EF Core(Nuget 安装如下) Microsoft.EntityFrameworkCore(ef core 核心包) * Microsoft.EntityFrameworkCore.Relational(ef core 映射关系) Microso 阅读全文
posted @ 2021-10-13 09:40 疾风回荡寻真途 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一、富文本编辑器 npm 安装 npm i wangeditor --save 引用 <script> import wangEditor from 'wangeditor' </script> 参数 export default { data(){ return{ editor:null, edi 阅读全文
posted @ 2021-09-25 17:42 疾风回荡寻真途 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 一、Model层 与数据库关联的表 [Table("CityInfo")] public class CityInfo { [Key] public int CId { get; set; } public string CName { get; set; } public int PId { ge 阅读全文
posted @ 2021-09-23 21:15 疾风回荡寻真途 阅读(87) 评论(0) 推荐(0) 编辑