Optimized dm & oracle

This commit is contained in:
sunkaixuan
2023-01-19 13:24:14 +08:00
parent 5758ac42e5
commit 2b62c8eea0
2 changed files with 12 additions and 2 deletions

View File

@@ -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)
{

View File

@@ -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)
{