Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

kenjiuno/EdmGen06

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 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