Closed
Description
On a .net 5 project in Visual Studio 2019, with FirebirdSql.Data.FirebirdClient
and FirebirdSql.EntityFrameworkCore.Firebird
modules, both version 8.0.1, running the Scaffold-dbcontext
command with a connection string pointing to a Firebird 2.5 database yields:
FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Dynamic SQL Error
SQL error code = -206
Column unknown
RF.RDB$IDENTITY_TYPE
At line 35, column 28
I believe rdb$IDENTITY_TYPE
was added in Firebird 3.0, and this version awareness is reflected in the schema code in Schema/FbColumns.cs
where a MajorVersionNumber
test elides this column, but the same test is not found in Scaffolding/Internal/FbDatabaseModelFactory.cs
.
I have played around with actually fixing this, but I've never done a github pull request before, so I'll file this as an Issue while I sort out my efforts.