IkeMtz.NRSRx.Templates
6.0.237.3
See the version list below for details.
dotnet new install IkeMtz.NRSRx.Templates::6.0.237.3
NRSRx Templates
These are templates for starting new NRSRx projects. These templates are fully compatible with Visual Studio 2022 and can also be used via the dotnet-cli.
Requirements
- The latest dotnet SDK.
- Visual Studio 2022 (if you're planning to use Visual Studio)
Getting started
At your closest command prompt, run the following:
dotnet new -i IkeMtz.NRSRx.Templates
The above command is also useful for pulling the latest version of the templates. It's ALWAYS a good idea to generate your projects off of the latest template.
Generating new projects via dotnet cli scripts
You can either go through the steps within Visual Studio or use the following scripts.
Note: If the template can find a solution file (either in the same or parent folders), the generated projects will automagically be added to your solution.
Scripting a models project:
dotnet new nrsrx-models -n {$Your Domain Name}.Models
Scripting an OData project
dotnet new nrsrx-odata -n {$Your Domain Name}.OData
Scripting an OData Test project
dotnet new nrsrx-odata-tests -n {$Your Domain Name}.OData.Tests
Scripting a WebApi project
dotnet new nrsrx-webapi -n {$Your Domain Name}.WebApi
Scripting a WebApi Test project
dotnet new nrsrx-webapi-tests -n {$Your Domain Name}.WebApi.Tests
Options
These options should have the same value for the group of services generated for the same domain.
| Short | Long | Default Value | Description |
| ----- | ---- | ------------- | ----------- |
| -S | --SkipModelGeneration | false | Use this option if you intent to use a Models project.|
| -E | --EntityName | Item | Name of initial entity created within the project. |
| -L | --LoggingProvider | ApplicationInsights | The type of logging provider that will be used (logging options below.) |
| -D | --DatabaseProvider | MsSql | The type of database that will be used (db options below.) |
| -Ev | --EventingProvider | ServiceBus | The type of eventing provider that will be used (eventing options below.) |
Logging Options
Note: this is not an option for Models projects. | Option | | ----------------- | | ApplicationInsights | | Splunk | | Elasticsearch | | NoLogging |
Db Options
Note: this is not an option for Models projects. Additionally, OData and OData Test projects cannot utilize the NoDb option. | Option | Description | | ----------------- | ----------- | | MsSql | Microsoft SQL Server | | MySql | MySql | | NoDb | No database |
Eventing Options
Note: this option only applies to WebApi and WebApi Test projects. | Option | Description | | ----------------- | ----------- | | Redis | Redis Streams | | ServiceBus | Azure ServiceBus | | NoEvents | No Eventing will be used |
Naming Standards
NRSRx is an opinionated framework, which is also true for its templates. All domain/entity names should be in singular form.
Do:
Sample.Student.Models
Don't:
Sample.Students.Models
The following naming standards should also be observed:
- Model projects should end with a ".Models" suffix.
- OData projects should end with a ".OData" suffix.
- WebApi projects should end with a ".WebApi" suffix.
- Test projects should end with a ".Tests" suffix.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.252.2 | 94 | 9/8/2024 |
7.0.254.2 | 682 | 9/11/2023 |
7.0.179.2 | 289 | 6/28/2023 |
6.0.320.6 | 711 | 11/16/2022 |
6.0.258.2 | 484 | 9/15/2022 |
6.0.258.1 | 460 | 9/15/2022 |
6.0.253.2 | 432 | 9/10/2022 |
6.0.251.2 | 471 | 9/8/2022 |
6.0.237.3 | 413 | 8/26/2022 |
6.0.220.4 | 466 | 8/9/2022 |
6.0.220.2 | 439 | 8/8/2022 |
6.0.206.2 | 492 | 7/26/2022 |
6.0.203.2 | 466 | 7/22/2022 |
6.0.202.2 | 414 | 7/22/2022 |
6.0.201.2 | 444 | 7/20/2022 |
6.0.192.2 | 465 | 7/11/2022 |
6.0.188.4 | 507 | 7/8/2022 |
6.0.188.2 | 473 | 7/7/2022 |
6.0.187.1 | 458 | 7/6/2022 |
6.0.186.10 | 473 | 7/6/2022 |
6.0.186.8 | 432 | 7/5/2022 |
6.0.186.7 | 519 | 7/5/2022 |
6.0.186.6 | 509 | 7/5/2022 |
6.0.186.5 | 473 | 7/5/2022 |
6.0.186.4 | 482 | 7/5/2022 |
6.0.186.3 | 455 | 7/5/2022 |
6.0.186.2 | 471 | 7/5/2022 |
6.0.184.3 | 498 | 7/3/2022 |
6.0.182.6 | 502 | 7/1/2022 |
6.0.182.4 | 468 | 7/1/2022 |
6.0.182.2 | 473 | 7/1/2022 |
6.0.181.12 | 497 | 6/30/2022 |
6.0.181.10 | 454 | 6/30/2022 |
6.0.181.8 | 475 | 6/30/2022 |
6.0.181.5 | 488 | 6/30/2022 |
6.0.181.4 | 478 | 6/30/2022 |
6.0.180.19 | 467 | 6/30/2022 |
6.0.180.12 | 453 | 6/30/2022 |
6.0.180.10 | 466 | 6/29/2022 |
6.0.180.8 | 473 | 6/29/2022 |
6.0.180.6 | 464 | 6/29/2022 |
6.0.142.3 | 171 | 5/22/2023 |