
.Net Core
文章平均质量分 56
wish366
这个作者很懒,什么都没留下…
展开
-
How to delete a package on private NuGet server?
【代码】How to delete a package on private NuGet server?原创 2025-02-14 13:32:38 · 163 阅读 · 0 评论 -
How to authenticate on mulitple IdentityServer4?
背景:客户为增加系统可靠性,在公司内部分别部署了多套IndentityServer4,分别使用不同的AP、DB server和域名,我分别叫它们:IDS-A和IDS-B,程式都相同。例如:HR业务系统使用IDS-A,RD业务系统使用IDS-B,当用户登录HR业务系统后,打开RD业务系统仍需要重新登录。在登录其中一台IDS时,呼叫另一台IDS的API,那么用户将获得IDS-A和IDS-B的cookie,即实现了SSO。注册IDS服务(如下代码)时,并没有指定 issuer,如果指定,业务系统都无需修改。原创 2024-06-13 09:57:13 · 300 阅读 · 0 评论 -
DB migration automatically with DB first (using PostgreSQL) in .NET 5
Please see the content first:DB first (using PostgreSQL) in .NET 5We knowed that our program's release path is from DEV to QAS to PRD.1. Create new objects in your DB of DEV, and export all sql scripts into a file.for exapmle: I have exported a file.原创 2022-05-12 13:39:59 · 192 阅读 · 0 评论 -
DB first (using PostgreSQL) in .NET 5
1.Create a projectunder your solution, there is DbFirst.API2. Install EntityFrameworkCore, Microsoft.EntityFrameworkCore.Design,Microsoft.EntityFrameworkCore.Tools, Npgsql.EntityFrameworkCore.PostgreSQL by NuGet4. Installdotnet-efdotnet tool in...原创 2021-09-17 14:05:05 · 263 阅读 · 0 评论 -
Code first (using PostgreSQL) in .NET 5
1. Open your VS and create two projects, there are CodeFirst.API and CodeFirstModel.1.1 CodeFirst.API project1.2 CodeFirst.Model2. Add a user class in CodeFirst.Model project.using System;using System.Collections.Generic;using Sys...原创 2021-09-16 08:30:45 · 189 阅读 · 0 评论 -
多线程实现方法 (threadpool and async method) in .Net Core.
.NET CORE 中实现多线程的两种方法(个人经验总结),两种方法使用的场景不同1.使用ThreadPoolusing System;using System.Collections.Generic;using System.Text;using System.Threading;using System.Threading.Tasks;namespace ConsoleApp1{ public class MyThreadPool { public原创 2021-05-13 16:16:23 · 352 阅读 · 0 评论