Skip to content

lucadistefano/EdmGen06

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EdmGen06

My alternative tool to EdmGen/EdmGen2

Usage

Here is content from Usage.txt

EdmGen06
 /ModelGen   <connectionString> <providerName> <modelName> <targetSchema> <ver>
 /EFModelGen <connectionString> <providerName> <DbProviderServices> <modelName> <targetSchema> <ver>
 /EFCodeFirstGen <input.edmx> <output.cs> <generator>
 /DataSet <connectionString> <providerName> <modelName> <targetSchema>
 /DataSet.cs <DataSet1.xsd> <DataSet1.cs>

rem <ver> is ssdl/msl/csdl schema version: 1.0 or 3.0
rem <generator>: DbContext.EFv6 or DbContext.EFv5 or ObjectContext

rem [SqlServer Example]

EdmGen06 ^
  /ModelGen ^
  "Data Source=xxxxx;Initial Catalog=xxxxx;Persist Security Info=True;User ID=xxxxx;Password=xxxxx;MultipleActiveResultSets=true;" ^
  "System.Data.SqlClient" ^
  "kodb" ^
  "dbo" ^
  "3.0"

rem [Npgsql Example]

EdmGen06 ^
  /ModelGen ^
  "Port=5432;Encoding=UTF-8;Server=xxxxx;Database=xxxxx;UserId=xxxxx;Password=xxxxx;Preload Reader=true;" ^
  "Npgsql" ^
  "DBName" ^
  "public" ^
  "3.0"

rem [Npgsql EF6 Example]

EdmGen06 ^
  /EFModelGen ^
  "Port=5432;Encoding=UTF-8;Server=xxxxx;Database=xxxxx;UserId=xxxxx;Password=xxxxx;Preload Reader=true;" ^
  "Npgsql" ^
  "Npgsql.NpgsqlServices, Npgsql.EntityFramework" ^
  "DBName" ^
  "public" ^
  "3.0"

About

My alternative tool to EdmGen/EdmGen2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.8%
  • Other 0.2%