entity-framework-corefirebirdef-database-firstfirebird-.net-provider

EF with existing Firebird database model generation problem


I have a Firebird database with tables. I need to generate DbContext, models etc. So provider installed:

packages

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:

result

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:

command result

However, DBcontext is empty:

no models


Solution

  • You are using FirebirdSql.EntityFrameworkCore.Firebird (7.10.1). This version doesn't support DbContext scaffolding.

    Try version-8.0.0 (currently in alpha3).