You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Library (.NET8.0): which should contain the context and such
A "build-project", which contains all dependencies like Microsoft.EntityFrameworkCore.Design and such (basically all which I don't want my db-lib should depend on)
I don't know if I could just ignore this? The models and context are building and seem to be correct.
We can't tell from the information you provided. Since this is about an index, some table index is probably not mentioned in your model, but is used in your database. Whether you can live without your app knowing about that index depends on your app.
@ITaluone If you want us to look into why this error is being generated, please post a SQL dump that we can use to setup a database that we can scaffold to reproduce the error message. Thanks!
Steps to reproduce
Setup
Microsoft.EntityFrameworkCore.Design
and such (basically all which I don't want my db-lib should depend on)Scaffold command
dotnet ef dbcontext scaffold "CONNECTION_STRING" Pomelo.EntityFrameworkCore.MySql -o path\to\my\models\folder -f --startup-project path\to\my\build\project
The issue
Both project are building fine, but the scaffold afterwards is "throwing" the aforementioned error (only for one table).
I don't know if I could just ignore this? The models and context are building and seem to be correct.
Further technical details
MySQL version: 8.0.36
Operating system: ubuntu20.04
Pomelo.EntityFrameworkCore.MySql version: 8.0.2
Microsoft.AspNetCore.App version: net8.0
The text was updated successfully, but these errors were encountered: