关于[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/