SnowStorm 2.2.0
dotnet add package SnowStorm --version 2.2.0
NuGet\Install-Package SnowStorm -Version 2.2.0
<PackageReference Include="SnowStorm" Version="2.2.0" />
paket add SnowStorm --version 2.2.0
#r "nuget: SnowStorm, 2.2.0"
// Install SnowStorm as a Cake Addin #addin nuget:?package=SnowStorm&version=2.2.0 // Install SnowStorm as a Cake Tool #tool nuget:?package=SnowStorm&version=2.2.0
Introduction
This package provides an Enity Framework DBContext class to easily implement the query part of the CQRS pattern.
It also provides additional features around auto configuration of the domain entities.
For more details, see... https://github.com/BenVanZyl/SnowStorm
How to use
Sample App
Located under: *src\Sample* Root Namespace: WebSample.SnowStorm
This is a Blazor WebAssembly app using a .NET CORE hosted backend using REST API. Using DbUp to manage changes to the database and to run end to end testing.
Tests for this application is End-to-End based and run as unit tests. It is a more practical approach and reduces the risks that your app might pass test but break in production. What it runs is what you get.
The test provides a sample of
- just testing the API
- testing end to end using Blazor Web Assembly UI
- testing end to end using Blazor Web Assembly UI and HTTP mocking. (Not my recommended way.)
Supported Platforms
.Net 7 (Latest version)
Latest Release Notes
2024-03-17 (2.2.0)
- Fixed save feature (POST)
- Fixed tests - Save data and DbCleanup.
- Improved Async handling when saving.
- [wip] some UI elements and associated tests
2024-01-17 (2.1.0)
- Update NuGet packages to resolve reported vulnerabilities and to ensure all is as upo to date as possible.
- Target Frame work is .NET 7
- WebSample.Tests is making progress.
2024-01-04 (2.0.0)
- BREAKING CODE!
- Removing obsolete code.
- Removing QueryExecutor as this functionality is fully integrated into the AppDbContext.
- Moved AppDbContext to DbContext folder and namespace.
- Change sample application to a Blazor WebAssembly app with ASP.NET CORE hosted backend.
- Added End-to-End testing for the sample app.
- Bug fixes.
- Beta: Use CurrentUser to extract user info from HttpContext (id, name, guid)
- could recquire the host app to inject HttpContextAccessor.
- builder.Services.AddHttpContextAccessor();
- could recquire the host app to inject HttpContextAccessor.
- Beta: When saving, use CurrentUser and reflection to update audit properties.
- Beta: GetById<T> methods added to reduce the need for query objects.
- Beta: GetAll<T> method to get all the rows from a table. This will reduce the need for query classes for reference data like dropdowns.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- AutoMapper (>= 13.0.1)
- Azure.Identity (>= 1.10.4)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.1)
- Microsoft.Data.SqlClient (>= 5.2.0)
- Microsoft.EntityFrameworkCore (>= 7.0.17)
- Microsoft.EntityFrameworkCore.SqlServer (>= 7.0.17)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 7.4.0)
- SnowStorm.Extensions (>= 1.0.0)
- System.IdentityModel.Tokens.Jwt (>= 7.4.0)
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 | |
---|---|---|---|
2.2.0 | 145 | 3/17/2024 | |
2.1.0 | 135 | 1/17/2024 | |
2.0.0 | 138 | 1/4/2024 | |
1.11.0 | 206 | 7/12/2023 | |
1.10.0 | 171 | 6/18/2023 | |
1.9.0 | 144 | 5/31/2023 | |
1.8.0 | 192 | 4/8/2023 | |
1.7.0 | 491 | 9/17/2022 | |
1.6.0 | 450 | 9/17/2022 | |
1.4.0 | 517 | 5/25/2022 | |
1.3.0 | 559 | 4/19/2022 | |
1.2.0 | 572 | 4/6/2022 | |
1.1.0 | 543 | 4/3/2022 | |
1.0.0 | 417 | 11/27/2021 | |
0.21.0 | 574 | 7/27/2021 | |
0.20.0 | 436 | 4/5/2021 | |
0.18.0 | 673 | 11/30/2020 | |
0.17.0 | 528 | 11/29/2020 | |
0.16.0 | 589 | 10/23/2020 | |
0.15.0 | 532 | 10/20/2020 | |
0.14.0 | 549 | 9/15/2020 | |
0.13.0 | 554 | 7/29/2020 | |
0.12.0 | 717 | 6/3/2020 | |
0.11.0 | 574 | 2/20/2020 | |
0.10.0 | 642 | 1/14/2020 | |
0.6.0 | 616 | 12/4/2019 | |
0.4.1-pullrequest0019-0002 | 678 | 12/2/2019 | |
0.4.0 | 846 | 12/1/2019 | |
0.3.1 | 901 | 12/1/2019 | |
0.3.1-pullrequest0018-0003 | 745 | 12/1/2019 | |
0.3.0 | 679 | 11/3/2019 |
See Readme.md