你的位置: 码友网首页 / 资讯源列表 / Creating a not-empty GUID validation attribute and a not-default validation attribute

关于[Creating a not-empty GUID validation attribute and a not-default validation attribute]的摘要:

In this post I describe a handy validation attribute used during ASP.NET Core model binding for verifying that a GUID doesn't have the default value of Guid.Empty. I always find myself re-creating it in projects, so now I can just copy it from here!

原文地址: https://andrewlock.net/creating-an-empty-guid-validation-attribute/

收录时间: 2019-03-15 浏览量: 2415 分类: ASP.NET Core

| 0 收藏 | 0