66| 神州通用 | FreeSql.Provider.ShenTong | PostgreSQL |
77| 人大金仓 | FreeSql.Provider.KingbaseES | PostgreSQL |
88| 南大通用 | FreeSql.Provider.GBase | Informix |
9+ | 虚谷 | FreeSql.Provider.Xugu | Oracle |
910| 翰高 | FreeSql.Provider.Custom、FreeSql.Provider.Odbc | PostgreSQL |
11+ | 华为(OpenGuass) | FreeSql.Provider.PostgreSQL | PostgreSQL |
1012
1113由于太多,在此不一一列举,它们大多数语法兼容 MySql、Oracle、SqlServer、PostgreSQL 四种常用数据库之一。
1214
@@ -20,8 +22,8 @@ FreeSql.Provider.Custom 不依赖具体 ado.net/odbc/oledb dll 驱动,使用
2022var fsql = new FreeSqlBuilder ()
2123 .UseConnectionFactory (DataType .CustomMySql , () =>
2224 new MySqlConnection (" Data Source=..." ))
23- .UseNoneParameter (true )
24- .UseMonitorCommand (Console .WriteLine (cmd .CommandText ))
25+ .UseNoneCommandParameter (true )
26+ .UseMonitorCommand (cmd => Console .WriteLine (cmd .CommandText ))
2527 .Build ();
2628fsql .SetDbProviderFactory (MySqlConnectorFactory .Instance );
2729```
@@ -33,6 +35,29 @@ fsql.SetDbProviderFactory(MySqlConnectorFactory.Instance);
3335
3436提示:对方 DLL 一般都会提供这两个现实类
3537
38+ ---
39+
40+ 华为报错:Received AuthenticationSASL message with 0 mechanisms!
41+
42+ 1、连接串
43+
44+ ``` shell
45+ Host=127.0.0.1; Port=15432; Username=qadmin; Password=****** ; Database=db; No Reset On Close=true; Pooling=true; Minimum Pool Size=1
46+ ```
47+
48+ 2、pg_hba.conf
49+
50+ ``` shell
51+ host all all 0.0.0.0/0 sha256
52+ host all all 127.0.0.1/32 trust
53+ ```
54+
55+ 3、postgresql.conf
56+
57+ ``` shell
58+ password_encryption_type = 1
59+ ```
60+
3661# 自定义适配
3762
3863除了上面,还提供了自定义适配更多的数据库,比如 mssql2000、db2,自定义适配将牺牲一些功能:
0 commit comments