ServiceGeneratorWebbilir is a command-line interface (CLI) tool designed for internal use in Webbilir. Package aim to automate the creation of services and implementations in the Unit of Work pattern.
To install ServiceGeneratorWebbilir, follow these steps:
-
Open your terminal.
-
Run the following command:
dotnet tool install --global ServiceGeneratorWebbilir --version 1.1.2
This command installs the tool globally on your system.
- Abstract and Concrete Generation: Automatically generates service interface (I{ServiceName}Service.cs) and Concrete (Ef{ServiceName}Service.cs) files.
- Unit of Work Updates: Updates the IUnitOfWork and EfUnitOfWork.cs files to include new service dependencies, ensuring the application follows the Unit of Work design pattern.
- Project Formatting: Automates project formatting using the dotnet format command, promoting code consistency across the project.
Overall, this tool aims to streamline the development process by automating the creation of boilerplate service and implementation files.
Once installed, you can use ServiceGeneratorWebbilir to generate files and code by executing commands like service generate Blog
.
For more information and detailed usage instructions, visit the ServiceGeneratorWebbilir NuGet package page.