Skip to content

Command line tool that splits FluentAPI entity definitions from DbContext.OnModelCreating() into separate configuration files.

License

Notifications You must be signed in to change notification settings

lauxjpn/DbContextOnModelCreatingSplitter

Repository files navigation

DbContext OnModelCreating Splitter

Command line tool that splits FluentAPI entity definitions from DbContext.OnModelCreating() into separate configuration files.

This tool can be used as a workaround for dotnet/efcore#8434.

Usage

  -c, --dbcontext    Required. Path the the DbContext file

  -o, --outdir       Output path for the generated configuration files

  -n, --namespace    Namespace for the generated configuration classes

  -B, --no-backup    Don't keep a copy of the original DbContext file

  --help             Display this help screen.

  --version          Display version information.

Example

DbContextOnModelCreatingSplitter -c Data\MyContext.cs -o Data\Configurations -n MyNamespace.Data.Configurations

Note

A backup of the original DbContext file is created by default.

Download

You can download the binaries from the latest release.

License

MIT

About

Command line tool that splits FluentAPI entity definitions from DbContext.OnModelCreating() into separate configuration files.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages