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,10 +1,18 @@
|
|||
namespace Lieb.Models.GuildWars2.Raid
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models.GuildWars2.Raid
|
||||
{
|
||||
public class PlannedRaidRole
|
||||
{
|
||||
public int PlannedRaidRoleId { get; set; }
|
||||
public string Name { get; set; } = String.Empty;
|
||||
public int Spots { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(40, ErrorMessage = "Name too long (40 character limit).")]
|
||||
public string Name { get; set; } = String.Empty;
|
||||
|
||||
[Required]
|
||||
[StringLength(200, ErrorMessage = "Description too long (200 character limit).")]
|
||||
public string Description { get; set; } = String.Empty;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue