Stubs.Generator
1.0.10
dotnet add package Stubs.Generator --version 1.0.10
NuGet\Install-Package Stubs.Generator -Version 1.0.10
<PackageReference Include="Stubs.Generator" Version="1.0.10" />
<PackageVersion Include="Stubs.Generator" Version="1.0.10" />
<PackageReference Include="Stubs.Generator" />
paket add Stubs.Generator --version 1.0.10
#r "nuget: Stubs.Generator, 1.0.10"
#:package Stubs.Generator@1.0.10
#addin nuget:?package=Stubs.Generator&version=1.0.10
#tool nuget:?package=Stubs.Generator&version=1.0.10
Hi, this package for stub generator like Laravel command.
if there is any problem email me : hossein.holy.shrine@gmail.com
Put this code in program.cs:
if (await StubCommandDispatcher.TryExecuteCommandAsync(args)) return;
you can publish the main config file by:
dotnet run make:publish-config
after that you should set paths for all keys. you can use the command like this
dotnet run make:model MODEL_NAME --options
for creating entities. the options is nullable and may be this options:
1- -p: make IRepository and Repository.
2- -s: make IService and Service.
3- -m: make MasterConfig.
4- -d: make Dtos.
5- -g: make Entity Configuration.
6- -ce or -cf: make Empty Controller or Full Controller with all basic functions.
7- -all: for simply all options.
make repository if you need IRepository send -i option.
dotnet run make:repository MODEL_NAME -i
make service if you need IService send -i option.
dotnet run make:service MODEL_NAME -i
make dtos with selected options if null create all dtos
dotnet run make:dto MODEL_NAME -gmsuf
1- g Get
2- m Get Mini
3- s Save
4- u Update
5- f Filter
make controller if option null create empty controller by default and if -full create with functions.
dotnet run make:controller MODEL_NAME -full
make new test in your project
dotnet run make:test MODEL_NAME
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.EntityFrameworkCore (>= 9.0.1)
-
net9.0
- Microsoft.EntityFrameworkCore (>= 9.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.