IkeMtz.NRSRx.Templates 7.0.254.2

dotnet new install IkeMtz.NRSRx.Templates::7.0.254.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
7.0.254.2 486 9/11/2023
7.0.179.2 258 6/28/2023
6.0.320.6 676 11/16/2022
6.0.258.2 457 9/15/2022
6.0.258.1 426 9/15/2022
6.0.253.2 403 9/10/2022
6.0.251.2 444 9/8/2022
6.0.237.3 379 8/26/2022
6.0.220.4 429 8/9/2022
6.0.220.2 411 8/8/2022
6.0.206.2 465 7/26/2022
6.0.203.2 431 7/22/2022
6.0.202.2 381 7/22/2022
6.0.201.2 411 7/20/2022
6.0.192.2 433 7/11/2022
6.0.188.4 476 7/8/2022
6.0.188.2 442 7/7/2022
6.0.187.1 425 7/6/2022
6.0.186.10 437 7/6/2022
6.0.186.8 409 7/5/2022
6.0.186.7 482 7/5/2022
6.0.186.6 474 7/5/2022
6.0.186.5 437 7/5/2022
6.0.186.4 450 7/5/2022
6.0.186.3 425 7/5/2022
6.0.186.2 444 7/5/2022
6.0.184.3 465 7/3/2022
6.0.182.6 474 7/1/2022
6.0.182.4 431 7/1/2022
6.0.182.2 435 7/1/2022
6.0.181.12 459 6/30/2022
6.0.181.10 426 6/30/2022
6.0.181.8 443 6/30/2022
6.0.181.5 457 6/30/2022
6.0.181.4 440 6/30/2022
6.0.180.19 431 6/30/2022
6.0.180.12 424 6/30/2022
6.0.180.10 434 6/29/2022
6.0.180.8 441 6/29/2022
6.0.180.6 432 6/29/2022
6.0.142.3 143 5/22/2023