superpav / EF6.Views.Generator

EF6 mapping views generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EF6.Views.Generator

CI

Set of *.exe files to generate EF6 views. Inspired by this Visual Studio extension.

Prerequisites

  • Entity Framework 6 (other versions are not supported)
  • User defined DbContext should have public modifier

Parameters

  1. dllFile - path to a dll with user-defined DbContext
  2. contextName - name of the user defined context
  3. outputPath - folder where to store generated views
  4. configFile - path to a config file (optional)
  5. connectionStringName - name of the connection string from config file (optional)

Examples

net 4.7.2

.\EF6.Views.Generator.NET472.exe dllFile DAL.dll contextName CustomContext outputPath .\Views

or

.\EF6.Views.Generator.NET472.exe dllFile DAL.dll contextName CustomContext outputPath .\Views configFile ..\..\Web.config connectionStringName Test

net6

.\EF6.Views.Generator.NET6.exe dllFile DAL.dll contextName CustomContext outputPath .\Views

or

.\EF6.Views.Generator.NET6.exe dllFile DAL.dll contextName CustomContext outputPath .\Views configFile ..\..\appsettings.json connectionStringName Test

Known issues

  • Custom data providers (for ex. Npgsql) are not supported

About

EF6 mapping views generator

License:MIT License


Languages

Language:C# 100.0%