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" />
                    
Directory.Packages.props
<PackageReference Include="Saintber.Extensions" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Saintber.Extensions&version=1.0.0-rc02-alpha06&prerelease
                    
Install as a Cake Tool

.NET License: MIT NuGet

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 for IServiceCollection
    • 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
    • ForEach supporting Lambda expressions
    • Asynchronous version of ForEach supporting Lambda expressions

Time

  • DateTimeOffsetExtensions - Provides timezone conversion extension methods for DateTimeOffset
    • Convert DateTimeOffset to specified timezone
    • Support extracting user timezone from HTTP headers

Transactions

  • TransactionExtensions - Provides extension methods for creating and controlling TransactionScope
    • 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 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.

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