EF with existing Firebird database model generation problem

402 views
Skip to first unread message

Владимир Кривенцев

unread,
Mar 3, 2021, 1:24:29 PM3/3/21
to firebird-net-provider
I have Firebird database with tables. I need to generate Dbcontext, models etc. So provider installed:
9857e7ba2e.jpg

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:
554a699bab.jpg

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:
d1ec8cc5ae.jpg
However, DBcontext is empty:
c8cd7cbb29.jpg


Jiří Činčura

unread,
Mar 3, 2021, 2:10:51 PM3/3/21
to 'Mr. John' via firebird-net-provider
Scaffolding was implemented only recently in version 8.0.

--
Mgr. Jiří Činčura
https://www.tabsoverspaces.com/

On Wed, Mar 3, 2021, at 18:53, Владимир Кривенцев wrote:
> I have Firebird database with tables. I need to generate Dbcontext,
> models etc. So provider installed:
> 9857e7ba2e.jpg
>
> 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:
> 554a699bab.jpg
>
> 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:
> d1ec8cc5ae.jpg
> However, DBcontext is empty:
> c8cd7cbb29.jpg
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "firebird-net-provider" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to firebird-net-pro...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/firebird-net-provider/09f6876b-8ec2-499c-8f62-346690392e23n%40googlegroups.com <https://groups.google.com/d/msgid/firebird-net-provider/09f6876b-8ec2-499c-8f62-346690392e23n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> Attachments:
> * d1ec8cc5ae.jpg
> * c8cd7cbb29.jpg
> * 554a699bab.jpg
> * 9857e7ba2e.jpg

Владимир Кривенцев

unread,
Mar 4, 2021, 1:16:52 AM3/4/21
to firebird-net-provider
as I understand 8.0 in alfa right now ?

среда, 3 марта 2021 г. в 22:10:51 UTC+3, ji...@cincura.net:

Jiří Činčura

unread,
Mar 4, 2021, 1:36:44 AM3/4/21
to 'Mr. John' via firebird-net-provider
Correct.
Reply all
Reply to author
Forward
0 new messages