Saintber.Extensions
1.0.0-rc02-alpha06
This is a prerelease version of Saintber.Extensions.
dotnet add package Saintber.Extensions --version 1.0.0-rc02-alpha06
NuGet\Install-Package Saintber.Extensions -Version 1.0.0-rc02-alpha06
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Saintber.Extensions" Version="1.0.0-rc02-alpha06" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Saintber.Extensions" Version="1.0.0-rc02-alpha06" />
<PackageReference Include="Saintber.Extensions" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Saintber.Extensions --version 1.0.0-rc02-alpha06
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Saintber.Extensions, 1.0.0-rc02-alpha06"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Saintber.Extensions@1.0.0-rc02-alpha06
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Saintber.Extensions&version=1.0.0-rc02-alpha06&prerelease
#tool nuget:?package=Saintber.Extensions&version=1.0.0-rc02-alpha06&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
English Documentation | 中文說明
English Documentation
Overview
Saintber.Extensions is a collection of commonly used C# extension methods designed for the Saintber system architecture. It includes the following namespaces:
- DependencyInjection: Extension methods for dependency injection
- Linq: Utility extensions for LINQ operations
- Time: Extensions for time and timezone handling
- Transactions: Helpers for managing transactional workflows
Installation
dotnet add package Saintber.Extensions
📝 License
This package is licensed under the MIT License.
🌐 Repository
https://github.com/saintber/Saintber.Abstractions
Extension Library Overview
DependencyInjection
ServiceCollectionExtensions- Provides extension methods forIServiceCollection- Register existing instances as specified interfaces (named registration)
Enum
EnumExtensions- Provides extension methods for Enum operations- Try to parse a string to an enum member
- Get the Description attribute of an enum member
Linq
LinqExtensions- Provides extension methods for LINQ and Lambda operations- Asynchronous version of
Select ForEachsupporting Lambda expressions- Asynchronous version of
ForEachsupporting Lambda expressions
- Asynchronous version of
Time
DateTimeOffsetExtensions- Provides timezone conversion extension methods forDateTimeOffset- Convert
DateTimeOffsetto specified timezone - Support extracting user timezone from HTTP headers
- Convert
Transactions
TransactionExtensions- Provides extension methods for creating and controllingTransactionScope- Create standard transaction scopes with specified timeout and auto-commit behavior (supports async)
中文說明
簡介
Saintber.Extensions 是一組常用的 C# 擴充方法集合,設計於 Saintber 系統架構中,涵蓋以下命名空間:
DependencyInjection:相依性注入相關擴充方法Linq:LINQ 操作的輔助擴充方法Time:時間與時區相關的擴充方法Transactions:交易流程輔助擴充方法
安裝方式
dotnet add package Saintber.Extensions
📝 許可條款
本套件採用 MIT 許可條款。
🌐 原始碼庫
https://github.com/saintber/Saintber.Extensions
擴充函式庫介紹
DependencyInjection
ServiceCollectionExtensions- 提供 IServiceCollection 的擴充方法- 註冊現有實例為指定介面(具名註冊)
Enum
EnumExtensions- 提供列舉函式操作的擴充方法- 嘗試將指定字串解析為列舉型別成員。
- Description 屬性取得
Linq
LinqExtensions- 提供 LINQ 與 Lambda 操作的擴充方法- 非同步版
Select - 支援 Lambda 表達式的
ForEach - 支援 Lambda 表達式的非同步版
ForEach
- 非同步版
Time 命名空間
DateTimeOffsetExtensions- 提供DateTimeOffset相關的時區轉換擴充方法- 將 DateTimeOffset 轉換為指定的時區時間
- 支援從 HTTP Header 擷取使用者時區
Transactions 命名空間
TransactionExtensions- 提供TransactionScope建立與控制的擴充方法- 建立具指定逾時與自動 Commit 行為的標準交易範圍(支援非同步)
| 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 is compatible. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
-
net8.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
-
net9.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.1.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
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 |
|---|---|---|
| 1.0.0-rc02-alpha06 | 413 | 7/2/2025 |
| 1.0.0-rc02-alpha05 | 553 | 5/8/2025 |
| 1.0.0-rc02-alpha04 | 155 | 5/8/2025 |
| 1.0.0-rc02-alpha03 | 168 | 5/8/2025 |
| 1.0.0-rc02-alpha02 | 895 | 3/6/2025 |
| 1.0.0-rc02-alpha01 | 215 | 3/6/2025 |
| 1.0.0-rc01 | 225 | 3/4/2025 |