TypeScript Entity Framework extending Prisma Client with Active Record pattern, declarative query builder, relation graph traversal, and batch operations. Current version 2.1.0 with monthly releases. Differentiators: full Active Record instance methods (create, update, delete on entity objects), fluent query DSL with LIKE/range/list filters, automatic upsert, graph path finding, pagination utilities, and performance metrics—filling gaps in Prisma Client without sacrificing type safety. Requires @prisma/client >=6.0.0 <7.0.0 and Node>=16.
npm install prisma-entity-frameworkNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates configuring Prisma, creating an Active Record entity, and using the query builder with search and pagination.
Switch from require() to import statements. Update tsconfig to use ESM module.
Replace { searchFilters: {...} } with { search: {...} } and { paginationOptions: {...} } with { pagination: {...} }.Use User.findFirst() or limit query to one result via pagination.
Ensure every field that corresponds to a Prisma column has the @Property decorator.
Assign static readonly model = prisma.<modelName> where <modelName> matches your Prisma schema model.
Upgrade @prisma/client to version 6.0.0 or later.
Run: npm install prisma-entity-framework@latest
Use ESM imports: import { BaseEntity } from 'prisma-entity-framework' (not require).Replace searchFilters with search and paginationOptions with pagination.
Ensure static readonly model = prisma.<modelName> is correctly assigned.