dotnet-storedprocsgen
10.1.0
dotnet tool install --global dotnet-storedprocsgen --version 10.1.0
dotnet new tool-manifest
dotnet tool install --local dotnet-storedprocsgen --version 10.1.0
#tool dotnet:?package=dotnet-storedprocsgen&version=10.1.0
nuke :add-package dotnet-storedprocsgen --version 10.1.0
Stored procedures generator for SQL Server written in .NET Core tools
You can learn more about global tools here: https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools
Usage: dotnet storedprocsgen [options]
Options: -?|-h|--help Show help information
-s|--server Server name
--database Database name
-t|--table Table name
-sc|--schema Schema name
-k|--kind Procedure kind: update|delete|insert|search|getbyid
-p|--prefix Stored procedure prefix
--drop Generate drop statement
-r|--rowVersionColumn Row version column name
-pc|--parentColumn Parent column name
-e|--search_columns Search columns, separated by |
-o|--order_by_columns Order by columns, separated by |
--upper Uppercase procedure name
This tool generates stored procedures. Use -s to specify server name and -d for the database name. Use --schema to target a specific schema, otherwise the tool keeps using the schema returned from table metadata. SSPI will be used.
Example for search generation: dotnet storedprocsgen -s . -d ContactManager -t Company -k search --drop -e City -o City
Example for schema-specific generation: dotnet storedprocsgen -s . -d ContactManager -t Company -sc sales -k getbyid
To install run
dotnet tool install dotnet-storedprocsgen -g
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
1.0 Initital release
1.1 Implement search
1.2 Implement Get by Id
1.3 Implement Get by parent id
1.4 Change procedures to user output into to support triggers on that tables
1.5 Implement upper casing of procedure names
1.6 Address issue with updating primary key inside update procedure. Update paramter size for search procedures
1.7 Address issue with nvarchar paramters were generated with double the size
1.8 Update Dotnet version
1.9 Update nugets
2.0 Update doc. -d paramter does not work in latest dotnet tool. Use --database
2.1 Security update and .net 8 adoption
10.0 Update to .net 10 and latest nugets and add support to procedures schema name
10.1 Fully qualify columns and tables with schema name.