forked from Sarah/Lieb-Website
limited string lengths
This commit is contained in:
parent
7113e3abee
commit
210020ece5
7 changed files with 42 additions and 5 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue