Générer du code pour plusieurs types C#

VérifiéSûr

Génère des fichiers de code source C# pour plusieurs ou tous les types d'objets dans une branche NovaDB. Utile pour générer en lot le code d'un modèle de données entier ou d'un sous-ensemble de types, en sauvegardant chaque exécution sur disque avec un contrôle optionnel du chemin.

Spar Skills Guide Bot
DeveloppementIntermédiaire
8002/06/2026
Claude Code
#csharp#code-generation#novadb#types

Recommandé pour

Notre avis

Génère du code C# pour plusieurs ou tous les types d'objets dans une branche NovaDB.

Points forts

  • Génération en lot pour gagner du temps
  • Filtrage par identifiants pour cibler des types spécifiques
  • Création automatique des sous-répertoires

Limites

  • Uniquement pour le langage C#
  • Ne fonctionne qu'avec NovaDB
  • Non adapté à la génération d'un seul type
Quand l'utiliser

Lorsque vous devez générer du code C# pour plusieurs types d'objets NovaDB dans une branche.

Quand l'éviter

Pour générer du code pour un seul type ou dans un autre langage que C#.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only invokes a dedicated code generation tool that writes output to disk. No shell commands, network calls, or path traversal are possible; `targetPath` is restricted to relative paths. There is no risk of data exfiltration or system damage.

Aucun point d'attention détecté

Exemples

Generate code for all types
Generate C# code for all object types in branch 2100347.
Generate code for specific types
Generate C# code for types 100, 200 in branch 2100347.

name: generate-code-for-types description: "Generate C# code for multiple or all object types in a branch." user-invocable: false allowed-tools: novadb_cms_get_code_generator_types

Generate Code for Types

Generate C# code for multiple or all object types in a branch and save to disk. ONLY for multi-type code generation — NOT for single-type generation or any other operations.

Scope

This skill ONLY handles: Generating C# source code for multiple or all object types in a branch.

For generating code for a single type → use generate-code-for-type

Note: NovaDB object IDs start at 2²¹ (2,097,152). All IDs in examples below are samples — always use real IDs from your system.

Tools

  1. novadb_cms_get_code_generator_types — Generate code for types and save to disk

Parameters

{
  "branch": "2100347",
  "language": "csharp",
  "ids": "100,200",
  "targetPath": "types.cs"
}
  • branch — Numeric branch ID (int32, required). Always use the branch the user is currently working on.
  • languageAlways use "csharp". This is the only supported language. (string, required)
  • ids — Comma-separated type IDs to filter (optional, omit for all types)
  • targetPath — (Optional) Relative path, e.g. "types.cs" or "codegen/types.cs". Default: codegen-<branch>-<language>.cs. Subdirectories are created automatically. Absolute paths and path traversal (../) are rejected.

Important

  • The language parameter must be "csharp" — no other language is supported.
  • Omit ids to generate code for all types in the branch.
  • To generate for specific types only, pass their IDs as a comma-separated string.

Response

JSON metadata object:

{
  "filePath": "types.cs",
  "sizeBytes": 98765,
  "contentType": "text/plain"
}

Common Patterns

Language Parameter

Only "csharp" is supported. No other languages are available.

Generating for All Types

Omit the ids parameter to generate code for all types in the branch.

Reading the Generated Code

Read the saved file to inspect or process the generated C# source code.

Skills similaires