常用的 Json 序列化配置如下: // json 序列化配置 private static readonly JsonSerializerOptions JsonSetting = new JsonSerializerOptions() {[......]继续阅读
常用的 Json 序列化配置如下: // json 序列化配置 private static readonly JsonSerializerOptions JsonSetting = new JsonSerializerOptions() {[......]继续阅读
Docker 如果使用 Nexus 配置 Docker 私有仓库,但是 Docker 不配置好地址,那么拉取镜像时会提示: Error response from daemon: Get https://192.168.0.111:666/v2/: http: server gave HTTP re[......]继续阅读
浅入 ABP 系列(6):数据库配置 版权护体©作者:痴者工良,微信公众号转载文章需要 《NCC开源社区》同意。 浅入 ABP 系列(6):数据库配置 创建标准的 EFCore 数据库上下文 连接字符串 定义隔离的上下文 多数据库支持和配置 Freesql 配置服务 本系列的第五篇:[......] 继续阅读
ASP.NET Core 中,可以使用 ConfigurationBuilder 对象来构建。 主要分为三部:配置数据源 -> ConfigurationBuilder -> 使用。 数据源可来自字典或配置文件。 数据源要么继承 IConfigurationSource ,要么从配置文件[......] 继续阅读
Startup 中,添加一个静态变量 readonly string MyAllowSpecificOrigins = "_myAllowSpecificOrigins"; services 中配置全局放通 services.AddCors[......]继续阅读
https://docs.microsoft.com/zh-cn/ef/core/miscellaneous/configuring-dbcontext 有两种配置方式,一种是 Dbcontext 构造函数和依赖注入同时使用。 public void ConfigureServices(IServi[......] 继续阅读
痴者工良
高级程序员劝退师
一个逗B,爱好技术交流,目前专注于后端开发、Devops、微服务架构、持续交付、容器化、Kubernetes 等。擅长 .NET(C#)、Go 语言。
COPYRIGHT © 2022 whuanle.cn. ALL RIGHTS RESERVED.
Theme Kratos Made By Seaton Jiang