mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update 人大金仓
This commit is contained in:
parent
83041194db
commit
2c9a84fa4d
@ -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>();
|
||||
|
@ -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>();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user