How to implement Entity Framework Core 3.1.2 with Firebird database using 'database first approach'

.net .net-core c# entity-framework-core firebird

Question

I am currently developing a .NET Core 3.1 Web API which should communicate with a Firebird database (storing/retrieving data). I would like to handle that communication using Microsoft.EntityFrameworkCore 3.1.2. Entity Framework is completely new for me so excuse me if this question is too simple. But I couldn't find the answer online.

Because the database is really big I want to automatically generate all my needed models using EF Core.

I tried using the Scaffold-DbContext command in the packet manager console:

Scaffold-DbContext "user id=USER;password=PASSWORD;database=DATABASE;data source=SOURCE;port number=PORT;character set=UNICODE_FSS;pooling=False;server type=Default" FirebirdSql.EntityFrameworkCore.Firebird -OutputDir Models 

Entity Framework Core is generating the Context.cs but not any models.

Do I have to specify the models I want to import? How do I do that?

1
2
4/10/2020 10:44:58 AM

Accepted Answer

To summarize the response to the question you posted on the firebird-net-provider group, support for scaffolding the model in EntityFrameworkCore is currently not available for Firebird. The improvement ticket for this is DNET-798.

2
3/4/2020 5:17:14 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow