Skip to content

Generates typescript classes from Entity Framework scaffolded classes

Notifications You must be signed in to change notification settings

yanbu0/EfCoreTsGen

Repository files navigation

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"
}

About

Generates typescript classes from Entity Framework scaffolded classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages