I have a Firebird
database with tables. I need to generate DbContext
, models etc. So provider installed:
Connection string is OK:
Console.WriteLine("Starting");
FbConnection db = new FbConnection(csb.ToString());
db.Open();
Console.WriteLine($"Database state:{db.State.ToString()}");
Db connection is Ok:
Trying to create models using command:
Scaffold-DbContext "user id=ХХХ;password=ХХХ;database=ХХХ;data source=localhost;port number=3050"FirebirdSql.EntityFrameworkCore.Firebird -OutputDir Models
looks good:
However, DBcontext is empty:
You are using FirebirdSql.EntityFrameworkCore.Firebird (7.10.1)
. This version doesn't support DbContext
scaffolding.
Try version-8.0.0
(currently in alpha3).