IkeMtz.NRSRx.Templates 6.0.251.2

There is a newer version of this package available.
See the version list below for details.
dotnet new install IkeMtz.NRSRx.Templates::6.0.251.2                
This package contains a .NET Template Package you can call from the shell/command line.

Build Status Release Status Nuget Package Nuget Downloads

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 91 9/8/2024
7.0.254.2 679 9/11/2023
7.0.179.2 286 6/28/2023
6.0.320.6 708 11/16/2022
6.0.258.2 481 9/15/2022
6.0.258.1 457 9/15/2022
6.0.253.2 429 9/10/2022
6.0.251.2 468 9/8/2022
6.0.237.3 410 8/26/2022
6.0.220.4 463 8/9/2022
6.0.220.2 436 8/8/2022
6.0.206.2 489 7/26/2022
6.0.203.2 463 7/22/2022
6.0.202.2 411 7/22/2022
6.0.201.2 441 7/20/2022
6.0.192.2 462 7/11/2022
6.0.188.4 504 7/8/2022
6.0.188.2 470 7/7/2022
6.0.187.1 455 7/6/2022
6.0.186.10 470 7/6/2022
6.0.186.8 429 7/5/2022
6.0.186.7 516 7/5/2022
6.0.186.6 506 7/5/2022
6.0.186.5 470 7/5/2022
6.0.186.4 479 7/5/2022
6.0.186.3 452 7/5/2022
6.0.186.2 468 7/5/2022
6.0.184.3 493 7/3/2022
6.0.182.6 499 7/1/2022
6.0.182.4 465 7/1/2022
6.0.182.2 470 7/1/2022
6.0.181.12 494 6/30/2022
6.0.181.10 451 6/30/2022
6.0.181.8 472 6/30/2022
6.0.181.5 485 6/30/2022
6.0.181.4 475 6/30/2022
6.0.180.19 464 6/30/2022
6.0.180.12 450 6/30/2022
6.0.180.10 463 6/29/2022
6.0.180.8 470 6/29/2022
6.0.180.6 461 6/29/2022
6.0.142.3 168 5/22/2023