当前位置:网站首页>.net5wtm (asp.net core) PgSQL unpacking operation
.net5wtm (asp.net core) PgSQL unpacking operation
2022-07-26 10:33:00 【Miners learn programming】
I am WTM A loyal fan ,1 month WTM Finally, it came out after a thousand calls , Originally, there was nothing to write about an unpacking operation , But because of my work demand this year , The database is made up of sqlserver towards pgsql shift . In the days to come , Development time pgsql It will be used more and more , Of course sqlserver I won't give up . in the future wtm+pgsql More and more blogs are stepping on the pit , Grow together . Let's have one today pgsql Unpacked blog .
One 、 To WTM The official website generates and downloads a project and configures it for use pgsql
This is the use of WTM Of .neter It will . We don't do anything , Directly generate and download . Unzip the generated project , And open appsettings.json modify Connections Of Value and DBType, Specify that the database we use is PgSql.pgsql After installation, the default user name is postgres, The password is set by yourself during installation . The detailed settings are as follows :
"Connections": [
{
"Key": "default",
"Value": "User ID=postgres;Password=123456;Host=localhost;Database=PGSqlTest_DB;Pooling=true;",
"DbContext": "DataContext",
"DBType": "PgSql" //DataBase, you can choose mysql,sqlserver,pgsql,sqlite,oracle
}
],Two 、 Start the project and view pgsql in WTM Whether the project database and data table are generated normally
I opened the box successfully ,WTM Stay on the court pgsql Generated in the PGSqlTest_DB And related data sheets .

3、 ... and 、 Step on the pit
This time I stepped on the pit , Mainly out of pgsql Yes .pgadmin Can't load in all the time , forever loading. open PgAdmin After that, the situation as shown in the figure below appears

terms of settlement :
WIN+R, Input : open regedit
Open the registry : HKEY_CLASSES_ROOT\.js\Content Type
Modify the corresponding Content Type Option configuration take text/plain It is amended as follows text/javascript
Restart accordingly PgAdmin4 that will do ( If not, restart the computer ).
边栏推荐
- Function template parameters (where are the function parameters)
- Unit test, what is unit test and why is it so difficult to write a single test
- hx711 数据波动大的问题
- 【论文下饭】Deep Mining External Imperfect Data for ChestX-ray Disease Screening
- [Halcon vision] image filtering
- 简单化构造函数的继承方法(二)- ES6中的class继承
- [Halcon vision] affine transformation
- modelsim 安装教程(应用未安装)
- PTA class a 1002
- 【Halcon视觉】图像的傅里叶变换
猜你喜欢
随机推荐
数据分析入门 | kaggle泰坦尼克任务(一)—>数据加载和初步观察
Using native JS to realize custom scroll bar (click to reach, drag to reach)
软件打不开了
L2-005 集合相似度(vector、set求并交集)
【C#语言】具名类型和匿名类型
The difference between equals and = =
分布式锁解决方案之Redis实现
图片随手机水平移动-陀螺仪。360度设置条件
构造器、方法重载、对象数组和static
【Halcon视觉】图像的傅里叶变换
Perfect / buffer motion framework in sentence parsing JS (for beginners)
关于函数模板描述错误的是(链接格式错误怎么解决)
Okaleido ecological core equity Oka, all in fusion mining mode
uniapp使用简单方法signalR(仅用于web调试,无法打包app)
卸载魅族应用商店
[Halcon vision] morphological expansion
移动端H5开发常用技巧总结
PLC概述
12 复制对象时勿忘其每一个成分
Inheritance method of simplified constructor (II) - class inheritance in ES6









