摘要: net core6 webapi接口返回JSON字段首字母自动转成小写,可以在Program.cs里面加 builder.Services.AddControllers().AddJsonOptions(options => { options.JsonSerializerOptions.Prope 阅读全文
posted @ 2022-10-01 16:12 ziff123 阅读(622) 评论(0) 推荐(0)
摘要: <script setup> let addFormVisible = ref(false); function handleAdd(){ addFormVisible = true; //没有生效 } </script> 定义了一个变量 addFormVisible用来控制页面对话框的显示, 在方 阅读全文
posted @ 2022-09-18 10:52 ziff123 阅读(961) 评论(0) 推荐(0)
摘要: 解决办法: 用记事本打开INI文件,点击菜单栏文件-->另存为-->编码选择UTF-8,然后保存就可以了。 C#操作INI工具类: 1 using System; 2 using System.Runtime.InteropServices; 3 using System.Text; 4 using 阅读全文
posted @ 2022-09-13 15:07 ziff123 阅读(172) 评论(0) 推荐(0)
摘要: 1、nuget引用 Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.SqlServer.Design Microsoft.EntityFramewo 阅读全文
posted @ 2022-07-24 23:26 ziff123 阅读(121) 评论(0) 推荐(0)
摘要: 1、查看头像保存的路径有没有存在Syn_SetPhotoPath 2、如果有处理头像,处理完记得关闭 阅读全文
posted @ 2022-07-07 09:29 ziff123 阅读(42) 评论(0) 推荐(0)
摘要: 1、查看头像照片设置的路径有没有存在Syn_SetPhotoPath 2、如果有处理头像,头像处理完有没有关闭 阅读全文
posted @ 2022-07-07 09:26 ziff123 阅读(80) 评论(0) 推荐(0)
摘要: 1、nuget引用 Microsoft.EntityFrameworkCore Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.SqlServer.Design Microsoft.EntityFramewo 阅读全文
posted @ 2022-07-03 22:22 ziff123 阅读(408) 评论(0) 推荐(0)
摘要: 1、Nuget引入Castle.Core 2、新建CustomInterceptor类,实现IInterceptor接口 1 using Castle.DynamicProxy; 2 using System; 3 using System.Collections.Generic; 4 using 阅读全文
posted @ 2022-06-19 16:15 ziff123 阅读(162) 评论(0) 推荐(0)
摘要: 1、Nuget引入 Autofac、Autofac.Extensions.DependencyInjection 2、Program.cs里面添加注入配置 { //第一种方式注入 builder.Host.UseServiceProviderFactory(new AutofacServicePro 阅读全文
posted @ 2022-06-19 14:54 ziff123 阅读(154) 评论(0) 推荐(0)
摘要: 一、支持属性注入 1、创建控制台程序 2、Nuget引入AutoFace 3、创建接口层Business.IServices,包含以下几个接口 IMicrophone.cs 1 namespace Business.IServices 2 { 3 public interface IMicropho 阅读全文
posted @ 2022-05-22 16:44 ziff123 阅读(1063) 评论(0) 推荐(0)