cs11dotnet7/vscode/PracticalApps/Northwind.Mvc/Models/Thing.cs

10 lines
192 B
C#
Raw Normal View History

2022-03-13 17:17:01 +01:00
using System.ComponentModel.DataAnnotations;
namespace Northwind.Mvc.Models;
public record Thing(
[Range(1, 10)] int? Id,
[Required] string? Color,
[EmailAddress] string? Email
);