1.3.0 • Published 7 months ago

@hatkom/prisma-generator-c-sharp v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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
1.3.0

7 months ago

1.2.0

9 months ago

1.1.0

10 months ago

1.0.0

10 months ago