Valkyrie 4.0.54
See the version list below for details.
dotnet add package Valkyrie --version 4.0.54
NuGet\Install-Package Valkyrie -Version 4.0.54
<PackageReference Include="Valkyrie" Version="4.0.54" />
paket add Valkyrie --version 4.0.54
#r "nuget: Valkyrie, 4.0.54"
// Install Valkyrie as a Cake Addin #addin nuget:?package=Valkyrie&version=4.0.54 // Install Valkyrie as a Cake Tool #tool nuget:?package=Valkyrie&version=4.0.54
Valkyrie
Valkyrie is a simple set of data annotations and extension methods to help with validating your objects in .NET.
Basic Usage
For the most part, Valkyrie consists of DataAnnotations. To use Valkyrie, simply add the annotations to your properties as shown below:
public class MyClass
{
[Cascade]
public MyOtherClass ItemA { get; set; }
[Between("1/1/1900", "1/1/2100")]
public DateTime ItemB { get; set; }
[Contains("A")]
public List<string> ItemC { get; set; }
}
The System.ComponentModel.DataAnnotations.Validator
class will automatically pick up these annotations when validating your object. Additionally, there are a couple of extension methods added to simplify object validation:
var results = new List<ValidationResult>();
bool didItWork = MyObject.TryValidate(results);
And:
MyObject.Validate();
The TryValidate
method returns a list of validation results, while the Validate
method throws a ValidationException
if there are any issues with validating your object.
Installation
The library is available on NuGet with the package name "Valkyrie." To install it, run the following command in the Package Manager Console:
Install-Package Valkyrie
Build Process
To build the library, make sure you have the following minimum requirements:
- Visual Studio 2022
Simply clone the project and load the solution in Visual Studio. You should be able to build it without much effort.
Contributing
We welcome contributions to Valkyrie. If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. We appreciate your support!
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
-
net6.0
- BigBook (>= 5.1.12)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Valkyrie:
Package | Downloads |
---|---|
Inflatable
Inflatable is a simple ORM. |
|
Monarch
Monarch is a command line parser/command runner |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.0.0 | 195 | 11/22/2024 |
4.0.102 | 207 | 11/12/2024 |
4.0.101 | 158 | 11/11/2024 |
4.0.100 | 234 | 11/5/2024 |
4.0.99 | 257 | 10/30/2024 |
4.0.98 | 143 | 10/30/2024 |
4.0.97 | 111 | 10/29/2024 |
4.0.96 | 327 | 10/10/2024 |
4.0.95 | 152 | 10/9/2024 |
4.0.94 | 1,120 | 8/28/2024 |
4.0.93 | 216 | 8/26/2024 |
4.0.92 | 223 | 8/23/2024 |
4.0.91 | 284 | 8/21/2024 |
4.0.90 | 429 | 8/19/2024 |
4.0.89 | 255 | 8/15/2024 |
4.0.88 | 274 | 8/3/2024 |
4.0.87 | 292 | 7/24/2024 |
4.0.86 | 282 | 7/10/2024 |
4.0.85 | 457 | 6/26/2024 |
4.0.84 | 194 | 6/25/2024 |
4.0.83 | 390 | 6/18/2024 |
4.0.82 | 206 | 6/17/2024 |
4.0.81 | 307 | 6/13/2024 |
4.0.80 | 204 | 6/12/2024 |
4.0.79 | 307 | 5/30/2024 |
4.0.78 | 588 | 5/29/2024 |
4.0.77 | 314 | 5/16/2024 |
4.0.76 | 193 | 5/15/2024 |
4.0.75 | 291 | 5/7/2024 |
4.0.74 | 240 | 5/6/2024 |
4.0.73 | 289 | 5/2/2024 |
4.0.72 | 371 | 5/1/2024 |
4.0.71 | 188 | 4/30/2024 |
4.0.70 | 280 | 4/29/2024 |
4.0.69 | 522 | 4/11/2024 |
4.0.68 | 264 | 4/10/2024 |
4.0.67 | 378 | 3/30/2024 |
4.0.66 | 311 | 3/28/2024 |
4.0.65 | 412 | 3/15/2024 |
4.0.64 | 229 | 3/14/2024 |
4.0.63 | 240 | 3/13/2024 |
4.0.62 | 335 | 3/8/2024 |
4.0.61 | 280 | 3/7/2024 |
4.0.60 | 206 | 3/6/2024 |
4.0.59 | 206 | 3/5/2024 |
4.0.58 | 195 | 3/4/2024 |
4.0.57 | 544 | 2/28/2024 |
4.0.56 | 193 | 2/28/2024 |
4.0.55 | 246 | 2/23/2024 |
4.0.54 | 209 | 2/22/2024 |
4.0.53 | 199 | 2/21/2024 |
4.0.52 | 171 | 2/20/2024 |
4.0.51 | 668 | 2/14/2024 |
4.0.50 | 364 | 2/9/2024 |
4.0.49 | 242 | 2/7/2024 |
4.0.48 | 207 | 2/6/2024 |
4.0.47 | 195 | 2/5/2024 |
4.0.46 | 480 | 1/31/2024 |
4.0.45 | 475 | 1/23/2024 |
4.0.44 | 168 | 1/22/2024 |
4.0.43 | 588 | 1/10/2024 |
4.0.42 | 941 | 12/18/2023 |
4.0.41 | 322 | 12/13/2023 |
4.0.40 | 311 | 12/12/2023 |
4.0.39 | 627 | 11/23/2023 |
4.0.38 | 301 | 11/20/2023 |
4.0.37 | 530 | 11/17/2023 |
4.0.36 | 496 | 11/16/2023 |
4.0.35 | 249 | 11/16/2023 |
4.0.34 | 463 | 11/8/2023 |
4.0.33 | 271 | 11/6/2023 |
4.0.32 | 242 | 11/3/2023 |
4.0.31 | 395 | 10/31/2023 |
4.0.30 | 233 | 10/30/2023 |
4.0.29 | 241 | 10/27/2023 |
4.0.28 | 318 | 10/25/2023 |
4.0.27 | 470 | 10/11/2023 |
4.0.26 | 437 | 9/25/2023 |
4.0.25 | 292 | 9/19/2023 |
4.0.24 | 244 | 9/19/2023 |
4.0.23 | 421 | 9/13/2023 |
4.0.22 | 252 | 9/12/2023 |
4.0.21 | 278 | 9/11/2023 |
4.0.20 | 237 | 9/11/2023 |
4.0.19 | 441 | 9/7/2023 |
4.0.18 | 280 | 9/5/2023 |
4.0.17 | 231 | 9/4/2023 |
4.0.16 | 303 | 9/1/2023 |
4.0.15 | 270 | 8/31/2023 |
4.0.14 | 261 | 8/30/2023 |
4.0.13 | 284 | 8/29/2023 |
4.0.12 | 280 | 8/28/2023 |
4.0.11 | 532 | 8/22/2023 |
4.0.10 | 338 | 8/17/2023 |
4.0.9 | 594 | 8/8/2023 |
4.0.8 | 239 | 8/8/2023 |
4.0.7 | 313 | 8/7/2023 |
4.0.6 | 335 | 8/4/2023 |
4.0.5 | 638 | 7/25/2023 |
4.0.4 | 606 | 7/13/2023 |
4.0.3 | 173 | 7/13/2023 |
4.0.2 | 159 | 7/13/2023 |
4.0.1 | 802 | 12/13/2022 |
4.0.0 | 498 | 12/12/2022 |
3.0.10 | 1,678 | 6/10/2022 |
3.0.7 | 2,297 | 1/11/2022 |
3.0.6 | 2,349 | 6/16/2021 |
3.0.5 | 957 | 6/16/2021 |
3.0.4 | 1,260 | 1/6/2021 |
3.0.2 | 3,337 | 9/13/2020 |
3.0.1 | 8,569 | 3/25/2020 |
3.0.0 | 7,013 | 12/23/2019 |
2.0.5 | 1,787 | 2/21/2019 |
2.0.4 | 3,843 | 8/10/2018 |
2.0.3 | 850 | 8/10/2018 |
2.0.2 | 3,123 | 6/1/2018 |
2.0.1 | 1,486 | 5/22/2018 |
2.0.0 | 4,135 | 1/2/2018 |
1.0.6 | 14,043 | 5/17/2017 |
1.0.4 | 1,109 | 3/22/2017 |
1.0.2 | 1,052 | 1/26/2017 |
1.0.1 | 1,001 | 1/25/2017 |