Reputation: 21
My program in C# using Entity Framework Core I can point to a PostgreSQL or SQLite database. When pointed to PostgreSQL the Database tool of Performance Analyzer does not work. There only appear native code calls in the CPU Usage tab and no queries in the queries tab. I tried both debug and release mode, as well as switching off all options except CPU usage, and then queries to isolate them.
When I switch to SQLite I see all function calls in the CPU Usage tab and all queries in the queries tab. Nothing changes in the code besides in DbContext
switching from optionsBUilder.UseNpgsql(connectionString);
to optionsBuilder.UseSqlite(connectionString);
and one entity for how PostgreSQL and SQLite deal with DateTime
.
Upvotes: 0
Views: 69