mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update MySql GetIndexList
This commit is contained in:
@@ -285,7 +285,7 @@ namespace SqlSugar
|
|||||||
public override List<string> GetIndexList(string tableName)
|
public override List<string> GetIndexList(string tableName)
|
||||||
{
|
{
|
||||||
var sql = $"SHOW INDEX FROM {this.SqlBuilder.GetTranslationColumnName(tableName)}";
|
var sql = $"SHOW INDEX FROM {this.SqlBuilder.GetTranslationColumnName(tableName)}";
|
||||||
return this.Context.Ado.SqlQuery<string>(sql);
|
return this.Context.Ado.GetDataTable(sql).AsEnumerable().Cast<DataRow>().Select(it => it["key_name"]).Cast<string>().ToList();
|
||||||
}
|
}
|
||||||
public override List<string> GetProcList(string dbName)
|
public override List<string> GetProcList(string dbName)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user