• Stars
    star
    1,291
  • Rank 36,440 (Top 0.8 %)
  • Language
    C#
  • License
    MIT License
  • Created over 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

With Razor Pages

CI

ContosoUniversity on ASP.NET Core 6.0 on .NET 6 and Razor Pages

Contoso University, the way I would write it.

This example requires some tools and PowerShell modules, you should run setup.cmd or setup.ps1 to install them.

To prepare the database, execute the build script using PSake: psake migrate. Open the solution and run!

Things demonstrated

  • CQRS and MediatR
  • AutoMapper
  • Vertical slice architecture
  • Razor Pages
  • Fluent Validation
  • HtmlTags
  • Entity Framework Core

Migrating the Database

Grate will automatically create or upgrade (migrate) the database to the latest schema version when you run it:

From PowerShell:

invoke-psake migrate

From CMD:

psake migrate

When running unit tests, you can recreate the unit test database using:

invoke-psake migratetest

Versioning

Version numbers can be passed on the build script command line:

From PowerShell:

invoke-psake CI -properties ${'version':'1.2.3-dev.5'}

Because we're passing a PowerShell dictionary on the command line, the cmd script doesn't handle this very nicely.

Or generate a version using GitVersion locally:

psake localversion

will generate a semantic version and output it.

More Repositories

1

MediatR

Simple, unambitious mediator implementation in .NET
C#
10,980
star
2

Respawn

Intelligent database cleaner for integration tests
C#
2,624
star
3

ContosoUniversityCore

JavaScript
589
star
4

presentations

Presentations I give
HTML
431
star
5

ContosoUniversityDotNetCore

JavaScript
424
star
6

ContosoUniversity

Contoso University sample re-done the way I would build it
JavaScript
394
star
7

MediatR.Extensions.Microsoft.DependencyInjection

MediatR extensions for Microsoft.Extensions.DependencyInjection
C#
327
star
8

bulk-writer

Provides guidance for fast ETL jobs, an IDataReader implementation for SqlBulkCopy (or the MySql or Oracle equivalents) that wraps an IEnumerable, and libraries for mapping entites to table columns.
C#
240
star
9

EntityFramework.Filters

Filters implementation for Entity Framework
C#
192
star
10

AdventureWorksCosmos

C#
96
star
11

nsb-diagnostics-poc

C#
70
star
12

SharpSSH

Fork of SharpSSH - SharpSSH is a pure .NET implementation of the SSH2 client protocol suite. It provides an API for communication with SSH servers and can be integrated into any .NET application.
C#
64
star
13

AzureAdExample

C#
50
star
14

MongoDB.Driver.Core.Extensions.DiagnosticSources

C#
42
star
15

NServiceBus.MessageRouting

Implementations of EIP message routing patterns
C#
41
star
16

QuartzNServiceBusSample

C#
39
star
17

MongoDB.Driver.Core.Extensions.OpenTelemetry

PowerShell
34
star
18

NServiceBus.Extensions.IntegrationTesting

C#
29
star
19

MicroservicesMessagingDemo

JavaScript
26
star
20

ddd-theory-and-practice-workshop-exercises

20
star
21

NServiceBus.Extensions.Diagnostics

C#
16
star
22

NServiceBus.Extensions.Diagnostics.OpenTelemetry

PowerShell
14
star
23

contosouniversitydocker

JavaScript
13
star
24

aspnetwebstack

C#
6
star
25

NServiceBusClassExample

C#
6
star
26

AutoMapper.EFCore

Port of https://github.com/AutoMapper/AutoMapper.EF6 for EF core.
C#
6
star
27

ndcsydney2017-cicd

JavaScript
5
star
28

contosouniversitydocker-linux

JavaScript
5
star
29

AzureMessagingServices

C#
5
star
30

blogexamples

Example code from posts on http://jimmybogard.lostechies.com
JavaScript
5
star
31

DotNetMigration

JavaScript
5
star
32

Oredev2016Workshop

C#
4
star
33

contosouniversity-rest

JavaScript
3
star
34

ContinuousDeliveryExample

JavaScript
3
star
35

rtd-tutorial

Python
2
star
36

NSBPerf

C#
2
star
37

AutoMapperSample

Sample Application for showing issue with AutoMapper
C#
1
star
38

NServiceBusProfiling

C#
1
star
39

sinatra-toto

Ruby
1
star
40

GenericVarianceContainerTests

C#
1
star
41

NServiceBusClassExamples

C#
1
star
42

kcdc2017-cicd

JavaScript
1
star