Skip to content
GaN8373 edited this page Mar 23, 2025 · 11 revisions

Welcome to the TemplateGenerator wiki!

Generator GUI

image

TeplateGroup: Template files local path dir

TypeMapping: dbtype to lang type

Path: out file path

namespace: inject to template string; lock: change path can update namespace, but can lock the namespace, make it not update.

GenerateTemplate: select generate template; from TemplateGroup

Quick Start

1. export DefaultCSharp type mapping then change to you use lang

image

detail: https://github.com/GaN8373/TemplateGenerator/wiki/TypeMapper

2. import you lang type mapper, remember to change the mapper name.

image

3. use intellij.database tool, right click in table or schema

image

4. select table and other config

image

5. click ok! you can find generate file in gui [Path]

Examples

https://github.com/GaN8373/TemplateGenerator/tree/master/Templates