Rex.Extensions.Models
8.0.0
dotnet add package Rex.Extensions.Models --version 8.0.0
NuGet\Install-Package Rex.Extensions.Models -Version 8.0.0
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="Rex.Extensions.Models" Version="8.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rex.Extensions.Models --version 8.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rex.Extensions.Models, 8.0.0"
#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.
// Install Rex.Extensions.Models as a Cake Addin
#addin nuget:?package=Rex.Extensions.Models&version=8.0.0
// Install Rex.Extensions.Models as a Cake Tool
#tool nuget:?package=Rex.Extensions.Models&version=8.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
实体扩展类库
统一返回客户端实体类:
- ResultData 向客户端输出
{ "code": 1000, "msg": "string", "result": { } }
- ResultDataModel 向客户端输出
{ "code": 1000, "msg": "string", "data": { } }
- ResultStatusModel 向客户端输出
{ "status": 0, "msg": "string", "data": { } }
频率较高的实体验证特性:
- MinValue/MaxValue 数值类型最大值、最小值
- ComplexPassword 强密码校验:必须包含数字、大小写字母、特殊符号
- MobileNumber 国内手机号码校验:
^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$
电信 133,149,153,173,174,177,180,181,189,191,193,199
移动 134,135,136,137,138,139,147,148,150,151,152,157,158,159,172,178,182,183,184,187,188,195,198
联通 130,131,132,145,146,155,156,166,175,176,185,186,196
广电 190,192,197
电信虚拟 162,1700,1701,1702
移动虚拟 165,1703,1705,1706
联通虚拟 167,1704,1707,1708,1709,171
持续补充中.
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 is compatible. 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. |
.NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7
- Rex.Utils.Core (>= 8.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net6.0
- Rex.Utils.Core (>= 8.0.0)
-
net7.0
- Rex.Utils.Core (>= 8.0.0)
-
net8.0
- Rex.Utils.Core (>= 8.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Rex.Extensions.Models:
Package | Downloads |
---|---|
Rex.Microsoft.AspNetCore.Mvc.Extensions
Microsoft.AspNetCore.Mvc 扩展组件:全局异常处理、Cors跨域、System.Text.Json 序列化/反序列化、Newtonsoft.Json 序列化/反序列化。 |
GitHub repositories
This package is not used by any popular GitHub repositories.