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
gen_random_uuid() was only introduced relatively recently (in PG 13), and the provider currently assumes PG 12 by default. You can tell so by default the Npgsql provider translates Guid.NewGuid to uuid_generate_v4. To tell the provider you're using PG 13, configure your context as follows:
Thank you so much. Sorry, I've been looking for documents for a day, maybe I'm a little anxious!
I'll take care next time, submit in text!
sincere thanks!
PostgreSQL 13.0 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit
EntityFrameworkCore 6.0
Npgsql.EntityFrameworkCore.PostgreSQL 6.0.3
It's been a day and I still can't solve it. What is the problem?
How to call gen_random_uuid() instead of uuid_generate_v4()?
The text was updated successfully, but these errors were encountered: