Skip to content

A C# class generator from SQL CREATE TABLE Statements (SSDT)

License

Notifications You must be signed in to change notification settings

ufcpp/SqlToCsharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SqlToCsharp

Target Platform is netcoreapp2.1, however dependent package Microsoft.SqlServer.TransactSql.ScriptDom is for .NET Framework 4.6. this means SqlToCsharp guaranteed to run on Windows but not for other platform.

confirm work on linux-x64 with sample project.

dotnet global tool

Install.

dotnet tool install -g SqlToCsharp

Run with samples.

dotnet-sqltocsharp ./samples/SqlToCsharpSampleDatabase ./samples/SqlToCsharpSampleConsoleApp SqlToCsharpSample

Single executable

Build Single executable.

windows

dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true

run with samples.

SqlToCsharp_win-x64.exe ./samples/SqlToCsharpSampleDatabase ./samples/SqlToCsharpSampleConsoleApp SqlToCsharpSample

linux

confirm work on linux-x64 (ubuntu 18.04).

dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true
./SqlToCsharp_linux-x64 ./samples/SqlToCsharpSampleDatabase ./samples/SqlToCsharpSampleConsoleApp SqlToCsharpSample

macOS

not-confirm on macos.

dotnet publish -c Release -r osx-x64 -p:PublishSingleFile=true
./SqlToCsharp_osx-x64 ./samples/SqlToCsharpSampleDatabase ./samples/SqlToCsharpSampleConsoleApp SqlToCsharpSample

About

A C# class generator from SQL CREATE TABLE Statements (SSDT)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages