Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
a3ecd21162
  1. 7
      Src/Asp.NetCore2/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs
  2. 7
      Src/Asp.NetCore2/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs

7
Src/Asp.NetCore2/SqlSugar/Realization/Dm/DbMaintenance/DmDbMaintenance.cs

@ -305,7 +305,12 @@ namespace SqlSugar
}
public override bool CreateDatabase(string databaseName, string databaseDirectory = null)
{
throw new NotSupportedException();
if (this.Context.Ado.IsValidConnection())
{
return true;
}
Check.ExceptionEasy("dm no support create database ", "达梦不支持建库方法,请写有效连接字符串可以正常运行该方法。");
return true;
}
public override bool AddRemark(EntityInfo entity)
{

7
Src/Asp.NetCore2/SqlSugar/Realization/Oracle/DbMaintenance/OracleDbMaintenance.cs

@ -307,7 +307,12 @@ namespace SqlSugar
}
public override bool CreateDatabase(string databaseDirectory = null)
{
throw new NotSupportedException();
if (this.Context.Ado.IsValidConnection())
{
return true;
}
Check.ExceptionEasy("Oracle no support create database ", "Oracle不支持建库方法,请写有效连接字符串可以正常运行该方法。");
return true;
}
public override bool CreateDatabase(string databaseName, string databaseDirectory = null)
{

Loading…
Cancel
Save