Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.06 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.06 KB

EfCoreTsGen

For .net 8 compatibility install v1.8.0 or higher

For .net 7 compatibility install v1.7.1

For .net 6 compatibility install v1.6.2

Generates typescript classes from Entity Framework scaffolded classes

Install using dotnet CLI:

dotnet tool install -g EfCoreTsGen

Run via powershell or command line: efcoretsgen [PathToConfig.json] Breaking change: You must enter the path to the settings file as a parameter, if it is in the same directory simply run efcoretsgen . Config file must be named efcoretsgen.settings.json

Config:

modelPath: path, relative to config file, that contains EF Core generated model files

excludeStrings: array of strings that if contained in the name of the file, the typescript generator will ignore, use to ignore EF Core generated context files, or models you do not want to include in typescript

outputPath: path relative to the config file to output the generated typescript files

example:

{
    "modelPath":".\\Models",
    "excludeStrings":[
        "Context"
    ],
    "outputPath":"..\\FrontEnd\\src\\models"
}