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
8ac4fba0dc
commit
5937b881d1
@ -1,5 +1,6 @@
|
|||||||
using OrmTest;
|
using OrmTest;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
|
using SqlSugar.OceanBaseForOracle;
|
||||||
using static Npgsql.Replication.PgOutput.Messages.RelationMessage;
|
using static Npgsql.Replication.PgOutput.Messages.RelationMessage;
|
||||||
|
|
||||||
namespace OceanBaseForOracle
|
namespace OceanBaseForOracle
|
||||||
@ -10,6 +11,12 @@ namespace OceanBaseForOracle
|
|||||||
{
|
{
|
||||||
Console.WriteLine("");
|
Console.WriteLine("");
|
||||||
Console.WriteLine("#### MasterSlave Start ####");
|
Console.WriteLine("#### MasterSlave Start ####");
|
||||||
|
|
||||||
|
//程序启动时加上只要执行一次
|
||||||
|
InstanceFactory.CustomAssemblies =
|
||||||
|
new System.Reflection.Assembly[] { typeof(OceanBaseForOracleProvider).Assembly };
|
||||||
|
|
||||||
|
|
||||||
//OceanBase Oracle 模式用这个 DbType.OceanBaseForOracle
|
//OceanBase Oracle 模式用这个 DbType.OceanBaseForOracle
|
||||||
//OceanBase MySql 模式用DbType.MySql不要用这个
|
//OceanBase MySql 模式用DbType.MySql不要用这个
|
||||||
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
SqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
|
||||||
|
Loading…
Reference in New Issue
Block a user