From 89c88e110419cee5f319786b6d257d1771a87ebe Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Wed, 19 Jul 2023 23:49:55 +0800 Subject: [PATCH] Update demo --- Src/Asp.NetCore2/OceanBaseForOracleTest/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Asp.NetCore2/OceanBaseForOracleTest/Program.cs b/Src/Asp.NetCore2/OceanBaseForOracleTest/Program.cs index 5836285f4..8a66b93db 100644 --- a/Src/Asp.NetCore2/OceanBaseForOracleTest/Program.cs +++ b/Src/Asp.NetCore2/OceanBaseForOracleTest/Program.cs @@ -10,10 +10,12 @@ namespace OceanBaseForOracle { Console.WriteLine(""); Console.WriteLine("#### MasterSlave Start ####"); + //OceanBase Oracle 模式用这个 DbType.OceanBaseForOracle + //OceanBase MySql 模式用DbType.MySql不要用这个 SqlSugarClient db = new SqlSugarClient(new ConnectionConfig() { ConnectionString = Config.ConnectionString,//Master Connection - DbType = DbType.OceanBaseForOracle, + DbType = DbType.OceanBaseForOracle,//Oracle 模式用这个 ,如果是MySql 模式用DbType.MySql InitKeyType = InitKeyType.Attribute, IsAutoCloseConnection = true });