Socket
Book a DemoInstallSign in
Socket

@hatkom/prisma-generator-c-sharp

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hatkom/prisma-generator-c-sharp

Generate C# records based on Prisma schema

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
0
Created
Source

Generate C# records based on Prisma schema

Input:

model Post {
  id Int
  title String
  content String
  published Boolean
  author User
}

model User {
  id Int
  name String
  email String
  posts Post[]
}

Output:

public record Post(
  int id, 
  string title, 
  string content, 
  bool published, 
  User author
);

public record User(
  int id, 
  string name, 
  string email, 
  Post[] posts
);

Supported:

  • Scalars
  • Enums
  • Arrays
  • Relations
  • Optional fields

Keywords

prisma

FAQs

Package last updated on 18 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts