limited string lengths

This commit is contained in:
t.ruspekhofer 2022-02-27 00:45:14 +01:00
parent 7113e3abee
commit 210020ece5
7 changed files with 42 additions and 5 deletions

View file

@ -1,4 +1,6 @@
namespace Lieb.Models.GuildWars2
using System.ComponentModel.DataAnnotations;
namespace Lieb.Models.GuildWars2
{
public enum Role
{
@ -67,6 +69,9 @@
public class GuildWars2Build
{
public int GuildWars2BuildId { get; set; }
[Required]
[StringLength(60, ErrorMessage = "BuildName too long (60 character limit).")]
public string BuildName { get; set; } = String.Empty;
public short Might { get; set; }