Sage.Data.Validation
1.0.0
See the version list below for details.
dotnet add package Sage.Data.Validation --version 1.0.0
NuGet\Install-Package Sage.Data.Validation -Version 1.0.0
<PackageReference Include="Sage.Data.Validation" Version="1.0.0" />
<PackageVersion Include="Sage.Data.Validation" Version="1.0.0" />
<PackageReference Include="Sage.Data.Validation" />
paket add Sage.Data.Validation --version 1.0.0
#r "nuget: Sage.Data.Validation, 1.0.0"
#:package Sage.Data.Validation@1.0.0
#addin nuget:?package=Sage.Data.Validation&version=1.0.0
#tool nuget:?package=Sage.Data.Validation&version=1.0.0
Sage.Data.Validation
简介
Sage.Data.Validation 提供了一系列用于验证数据格式的扩展方法,如邮箱、手机号、URL等,将会不断扩展。该库旨在简化数据验证操作,提供更全更简单易用的 API,并支持 AOT 编译优化。
主要特性
- 支持多种常见数据格式的验证
- 使用 GeneratedRegexAttribute 支持 AOT 编译优化
- 简单易用的 API
使用示例
using Sage.Data.Validation;
// 验证邮箱
string email = "user@example.com";
bool isValidEmail = email.IsValidEmail(); // 返回 true
// 验证手机号
string phone = "13800138000";
bool isValidPhone = phone.IsValidChinesePhoneNumber
(); // 返回 true
// 验证URL
string url = "https://www.example.com";
bool isValidUrl = url.IsValidUrl(); // 返回 true
许可证
版权所有 © 2025 甲壳虫科技 团队。
贡献
欢迎提交问题和功能请求。 QQ Group: 1054304346
作者
甲壳虫科技
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net9.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sage.Data.Validation:
Package | Downloads |
---|---|
Sage.CloudStorage.Qiniu
Sage.CloudStorage.Qiniu 是一个基于 .NET 平台的现代化七牛云存储 SDK,采用完全异步设计,提供了对七牛云对象存储、CDN 等服务的简单易用的 API 封装。该库基于 Sage.Http 构建,具有高性能、可扩展的七牛云服务访问能力,特别适合企业级应用和大文件处理场景。 ## 核心优势 - **现代化API设计**:完全异步,符合.NET最佳实践 - **模块化架构**:各组件职责明确,易于扩展和维护 - **丰富的事件机制**:提供上传进度通知和完成事件 - **智能上传策略**:自动选择最佳上传方式和分片大小 - **完善的错误处理**:提供详细的错误信息和恢复机制 ## 功能特性 - **完整的对象存储支持**:上传、下载、管理、删除等操作 - **高级上传功能**: - 智能分片上传(自动优化分片大小) - 断点续传支持 - 并发控制 - 实时进度监控 - **CDN管理**:刷新、预取、带宽查询、日志下载 - **数据处理**:图片处理、音视频转码等 - **批量操作**:批量上传、删除等 |
GitHub repositories
This package is not used by any popular GitHub repositories.