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
I want to start a csharprepl against an existing asp.net core app with entity framework and postgres as the database. The idea is to play with the project and especially also query the database using the models in the project. I couldn't get it to work after quite some time and maybe someone can help.
I am starting the repl normally with csharprepl but I also tried csharprepl --framework Microsoft.AspNetCore.App which did not change anything, so maybe this is not related?!
Anyway then I am starting with the following lines
(9,1): error CS1929: 'DbContextOptionsBuilder<MyDbContext>' does not contain a definition for 'UseNpgsql',
and the best extension method overload 'NpgsqlDbContextOptionsBuilderExtensions.UseNpgsql(DbContextOptionsBuilder,Action<NpgsqlDbContextOptionsBuilder>?)' requires a receiver of type 'DbContextOptionsBuilder'.
I have a clue that the wrong extension method is used, but I am stuck to figure out why... Is this a bug?
The text was updated successfully, but these errors were encountered:
I want to start a
csharprepl
against an existing asp.net core app with entity framework and postgres as the database. The idea is to play with the project and especially also query the database using the models in the project. I couldn't get it to work after quite some time and maybe someone can help.I am starting the repl normally with
csharprepl
but I also triedcsharprepl --framework Microsoft.AspNetCore.App
which did not change anything, so maybe this is not related?!Anyway then I am starting with the following lines
and I get the following error:
I have a clue that the wrong extension method is used, but I am stuck to figure out why... Is this a bug?
The text was updated successfully, but these errors were encountered: