Prisma generator that produces .NET Postgres data models (C# classes) from your Prisma schema. Current stable version 2.2.5, release cadence irregular. Differentiators: generates DbContext with EF Core mappings, handles relations and enums, opinionated naming conventions. Use when you need to keep .NET models in sync with Prisma schema without manual mapping.
npm install prisma-generator-dotnet-postgresNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows Prisma schema generator config and sample models that produce C# classes
Set output to a directory in your .NET project
Update generator block to use 'namespace' field instead of 'nameSpace'
Add .HasPostgresEnum() in OnModelCreating
Add UseLazyLoadingProxies() if needed
npm install -D prisma-generator-dotnet-postgres
Use provider = "prisma-generator-dotnet-postgres"
Add <ProjectReference> or include files manually