Skip to content

Commit 64c685a

Browse files
Fix GTT tables being mapped to views
1 parent 0fd8306 commit 64c685a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FirebirdSql.EntityFrameworkCore.Firebird/Scaffolding/Internal/FbDatabaseModelFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ private IEnumerable<DatabaseTable> GetTables(DbConnection connection, Func<Datab
121121
var comment = reader.GetString(1);
122122
var type = reader.GetInt32(2);
123123

124-
var table = type == 0
125-
? new DatabaseTable()
126-
: new DatabaseView();
124+
var table = type == 1
125+
? new DatabaseView()
126+
: new DatabaseTable();
127127

128128
table.Schema = null;
129129
table.Name = name;

0 commit comments

Comments
 (0)