当前位置:网站首页>.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 ).
边栏推荐
- algorithm
- [Halcon vision] morphological expansion
- Function template parameters (where are the function parameters)
- [Halcon vision] image gray change
- 构造器、方法重载、对象数组和static
- Using native JS to realize custom scroll bar (click to reach, drag to reach)
- SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
- [leetcode每日一题2021/8/30]528. 按权重随机选择【中等】
- js翻页、kkpager.js翻页
- C语言计算日期间隔天数
猜你喜欢
随机推荐
Introduction to Phoenix (Level 1: Phoenix installation, level 2: Phoenix basic grammar)
议程速递 | 7月27日分论坛议程一览
.NET操作Redis Set无序集合
原生JS-获取transform值 x y z及rotate旋转角度
函数模板与同名的非模板函数不可以重载(重载的定义)
我们的Web3创业项目,黄了
centos8(liunx)部署WTM(ASP.NET 5)使用pgsql
Review of database -- 3. SQL language
【Halcon视觉】软件编程思路
Interview questions and answers for the second company (2)
【socket】三次握手是在listen中完成,accept只从完成连接的队列中拿出一个连接
【dectectron2】跟着官方demo一起做
12 复制对象时勿忘其每一个成分
【Halcon视觉】极坐标变换
简单化构造函数的继承方法(二)- ES6中的class继承
分布式锁解决方案之Redis实现
一些你不知道的 web API
【杂谈】Error loading psycopg2 module :No module named psycopg2
string null转空字符串(空字符串是什么意思)
数据库函数



![[Halcon vision] image filtering](/img/4b/e73a8d589b49276d96621f0ef02449.png)




