Date | 2023-01-26 (659 days ago) |
---|---|
Downloads | 369 downloads |
NuGet | View on NuGet |
GitHub | View on GitHub |
Target Frameworks | .NET 5 .NET 6 .NET 7 |
New alpha release 🎉
#installation
">InstallationVia NuGet:
dotnet add package Skybrud.Essentials.AspNetCore --version 1.0.0-alpha011
or:
Install-Package Skybrud.Essentials.AspNetCore -Version 1.0.0-alpha011
#changelog
">ChangelogAdded methods for parsing query string values into string arrays and lists (see 1977354
)
The package already contains extension methods for ICookieCollection
and StringValues
for parsing multiple values into an array or list. While this has been specifically for value types, GetStringArray
and GetStringList
extension methods are now available for ICookieCollection
, and similar ToStringArray
and ToStringList
extension methods are now available for StringValues
.
Added methods for parsing query strings into enum arrays and lists (see f962561
)
So far this package has lacked extension methods for parsing enum values from a query string. With this release, the package provides various GetEnum
, GetEnumOrNull
, GetEnumArray
and GetEnumList
extension methods for IQueryCollection
as well as similar ToEnum
, ToEnumOrNull
, ToEnumArray
and ToEnumList
extension methods for StringValues
.
Added Get{Type}OrNull
and To{Type}OrNull
extension methods (see 00c54a2
)
In addition to the existing Get{Type}
and To{Type}
extension methods for IQueryCollection
and StringValues
respectively, the package now also contains Get{Type}OrNull
and To{Type}OrNull
alternatives that return null
if a value isn't found or couldn't be parsed.