属性路由参数约束
来源:互联网 发布:侯喜王歌 知乎 编辑:程序博客网 时间:2024/05/22 02:02
参考:点击打开链接
Constraint Description Example alphaMatches uppercase or lowercase Latin alphabet characters (a-z, A-Z){x:alpha}boolMatches a Boolean value.{x:bool}datetimeMatches a DateTime value.{x:datetime}decimalMatches a decimal value.{x:decimal}doubleMatches a 64-bit floating-point value.{x:double}floatMatches a 32-bit floating-point value.{x:float}guidMatches a GUID value.{x:guid}intMatches a 32-bit integer value.{x:int}lengthMatches a string with the specified length or within a specified range of lengths.{x:length(6)}
{x:length(1,20)}longMatches a 64-bit integer value.{x:long}maxMatches an integer with a maximum value.{x:max(10)}maxlengthMatches a string with a maximum length.{x:maxlength(10)}minMatches an integer with a minimum value.{x:min(10)}minlengthMatches a string with a minimum length.{x:minlength(10)}rangeMatches an integer within a range of values.{x:range(10,50)}regexMatches a regular expression.{x:regex(^\d{3}-\d{3}-\d{4}$)}
{x:length(1,20)}longMatches a 64-bit integer value.{x:long}maxMatches an integer with a maximum value.{x:max(10)}maxlengthMatches a string with a maximum length.{x:maxlength(10)}minMatches an integer with a minimum value.{x:min(10)}minlengthMatches a string with a minimum length.{x:minlength(10)}rangeMatches an integer within a range of values.{x:range(10,50)}regexMatches a regular expression.{x:regex(^\d{3}-\d{3}-\d{4}$)}
0 0
- 属性路由参数约束
- 创建路由约束(C#)
- 创建自定义路由约束(C#)
- ORACLE约束的属性
- MySQL 字段属性(约束)
- 类型参数约束
- 通过注解约束参数
- (路由)无线参数解读
- 无线路由的参数
- ng路由参数
- nodejs路由路径参数
- MVC自定义路由参数
- angular路由参数传递
- tornado 2、路由参数
- WebAPI路由、参数绑定
- laravel获取路由参数
- 获取路由参数
- angular4路由1(路由传递参数)
- java文件路径几种加载方式
- 完全背包入门
- 系统架构。
- 标准Http协议的请求方法
- pull解析xml
- 属性路由参数约束
- 黑马程序员-23种设计模式之单例模式
- shell 第一站 创建shell脚本
- Centos中samba精简安装与使用
- js,css 自动化构建工具gulp初探
- cxf在cmd中通过wsdl2java生成客户端文件
- FriendlyARM Tiny 4412开发板烧写Linux系统步骤
- JAVA通过JDBC连接并操作MySQL数据库
- 给内核打patch的利器 quilt