Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.visual-basic > #19778

Migrations da VB.NET con EF Core 3.0

From "Andrea (Work)" <andrea.isworkDELETEME@gmail.invalid>
Newsgroups it.comp.lang.visual-basic
Subject Migrations da VB.NET con EF Core 3.0
Date 2020-05-26 10:35 +0200
Organization Aioe.org NNTP Server
Message-ID <aefprv3vc56k$.rdql2sdsxk8t.dlg@40tude.net> (permalink)

Show all headers | View raw


Buongiorno a tutti,
stato creando un nuovo progetto e volevo provare Entity Framework .NET Core
3.0 da VB.NET.
Ho incontrato alcune difficolta:
1. Non posso fare un progetto windows forms .NET Core (si può solo in C#),
anche se da alcune news sembra sarà possibile (forse dal fwk 5.0)

Ho creato allora una class library .NET Standard dove ho messo tutta la
logica delle classi e del context. La cosa funziona anche, ma se provo ad
attivare migrations mi da questo errore:

| The project language 'VB' isn't supported by the built-in
| IMigrationsCodeGenerator service. You can try looking for an additional
| NuGet package which supports this language; moving your DbContext type
| to a C# class library referenced by this project; or manually
| implementing and registering the design-time service for programming
| language.

Su questo tipo di avviso non si trova quasi nulla su internet, e confermo
che migrando a C# la class library poi tutto funziona.

Per fare le prove sono partito poi da questo progetto console app:
https://www.devart.com/dotconnect/sqlite/docs/Tutorial_EFCore_NETCore.html

Sapete se c'è qualche passaggio che ho saltato? Oppure è così e non ci si
può fare nulla?

Back to it.comp.lang.visual-basic | Previous | Next | Find similar


Thread

Migrations da VB.NET con EF Core 3.0 "Andrea (Work)" <andrea.isworkDELETEME@gmail.invalid> - 2020-05-26 10:35 +0200

csiph-web