mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update demo
This commit is contained in:
parent
e2c5dad1d6
commit
89c88e1104
@ -10,10 +10,12 @@ namespace OceanBaseForOracle
|
|||||||
{
|
{
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
Console.WriteLine("#### MasterSlave Start ####");
|
Console.WriteLine("#### MasterSlave Start ####");
|
||||||
|
//OceanBase Oracle 模式用这个 DbType.OceanBaseForOracle
|
||||||
|
//OceanBase MySql 模式用DbType.MySql不要用这个
|
||||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
||||||
{
|
{
|
||||||
ConnectionString = Config.ConnectionString,//Master Connection
|
ConnectionString = Config.ConnectionString,//Master Connection
|
||||||
DbType = DbType.OceanBaseForOracle,
|
DbType = DbType.OceanBaseForOracle,//Oracle 模式用这个 ,如果是MySql 模式用DbType.MySql
|
||||||
InitKeyType = InitKeyType.Attribute,
|
InitKeyType = InitKeyType.Attribute,
|
||||||
IsAutoCloseConnection = true
|
IsAutoCloseConnection = true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user