Skip to content

Commit 1388dfd

Browse files
committed
- 优化 SqliteDbFirst 输入参数处理;
1 parent 6d77d67 commit 1388dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Providers/FreeSql.Provider.Sqlite/SqliteDbFirst.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public List<DbTableInfo> GetTables(string[] database, string tablename, bool ign
175175
if (ignoreCase) tbname = tbname.Select(a => a.ToLower()).ToArray();
176176
database = new[] { tbname[0] };
177177
}
178-
else if (database == null || database.Any() == false)
178+
else if (database == null || database.Any() == false || string.IsNullOrEmpty(database.FirstOrDefault()))
179179
database = GetDatabases().ToArray();
180180
if (database.Any() == false) return loc1;
181181

0 commit comments

Comments
 (0)