Update 人大金仓

This commit is contained in:
sunkaixuan 2022-10-12 20:12:56 +08:00
parent 83041194db
commit 2c9a84fa4d
3 changed files with 10 additions and 1 deletions

View File

@ -253,6 +253,14 @@ namespace SqlSugar
this.Context.Ado.ExecuteCommand(string.Format(this.DropTableSql, tableName));
return true;
}
public virtual bool DropTable(string [] tableName)
{
foreach (var item in tableName)
{
DropTable(item);
}
return true;
}
public virtual bool DropTable<T>()
{
var tableName= this.Context.EntityMaintenance.GetTableName<T>();

View File

@ -32,6 +32,7 @@ namespace SqlSugar
bool CreateIndex(string tableName, string [] columnNames, bool isUnique=false);
bool CreateIndex(string tableName, string[] columnNames, string IndexName, bool isUnique = false);
bool DropTable(string tableName);
bool DropTable(params string [] tableName);
bool DropTable<T>();
bool DropTable<T,T2>();
bool DropTable<T, T2,T3>();

View File

@ -30,7 +30,7 @@ namespace SqlSugar
then true else false end as IsIdentity,
case when pcolumn.is_nullable = 'YES'
then true else false end as IsNullable
from (select * from sys_tables where tablename = UPPER('{0}') and schemaname='PUBLIC') ptables inner join sys_class pclass
from (select * from sys_tables where UPPER(tablename) = UPPER('orderdetail') and UPPER(schemaname)='PUBLIC') ptables inner join sys_class pclass
on ptables.tablename = pclass.relname inner join (SELECT *
FROM information_schema.columns
) pcolumn on pcolumn.table_name = ptables.tablename