Issue Details (XML | Word | Printable)

Key: DNET-798
Type: Sub-task Sub-task
Status: Open Open
Priority: Major Major
Assignee: Jiri Cincura
Reporter: Jiri Cincura
Votes: 2
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
.NET Data provider
DNET-663

EF Core scaffolding support

Created: 01/Dec/17 01:45 PM   Updated: 14/Apr/20 10:04 PM
Component/s: Entity Framework Core
Affects Version/s: None
Fix Version/s: None

Issue Links:
Duplicate
 


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henning Hassmann added a comment - 08/Jul/19 02:42 PM
Is there anything new on Scaffold? I can start it, but no database classes are created.

Jiri Cincura added a comment - 09/Jul/19 06:57 AM
Nothing new.

Vince added a comment - 23/Jul/19 02:40 PM - edited
Hello,


I have the same pb.
VS2019 Pro + new ASP.NET Core 2.2 project.
In Nuget : installation of FirebirdSql.EntityFrameworkCode.Firebird 6.6.0 (install Firebirdsql.Data.FirebirdClient.6.6.0 + FirebirdSql.EntityFrameworkCode.Firebird.6.6.0)

Before trying with my customer database , I have create a database with one table for testing.

CREATE TABLE TESTITEM ( IDTABLE INTEGER NOT NULL, LIB VARCHAR(255));
ALTER TABLE TESTITEM ADD CONSTRAINT PK_TESTITEM PRIMARY KEY (IDTABLE);

Scaffold-dbcontext "User=SYSDBA;Password=masterkey;Database=D:\Projects\WebAppt\data\testcore.7data;DataSource=127.0.0.1;Port=3050;Dialect=3;Charset=NONE;Role=;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;PacketSize=8192;ServerType=0;" FirebirdSql.EntityFrameworkCore.Firebird -Output "D:\Projects\WebApp\testApp\Models\TestCore2" -Context "TestCore2"

No database class are created. Juste a folder with TestCore2.cs with DbContext, override void OnConfiguring and override void OnModelCreating

I missed something ?

Thanks

Jiri Cincura added a comment - 23/Jul/19 02:43 PM
You missed the ticket being still active...

Dejan Radic added a comment - 14/Apr/20 10:04 PM
This work for me

Install-package EntityFrameworkCore.FirebirdSql -Version 2.1.2.2
Install-package Microsoft.EntityFrameworkCore.Tools -Version 2.2.6

Scaffold-DbContext "Server=myserver;Database=mydatabase;user id=SYSDBA;password=masterkey;" EntityFrameworkCore.FirebirdSql -Force -OutputDir Models

and then downgrade to
Install-package EntityFrameworkCore.FirebirdSql -Version 2.1.1