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.Raid
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models.GuildWars2.Raid
|
||||
{
|
||||
public class RaidReminder
|
||||
{
|
||||
|
@ -20,6 +22,8 @@
|
|||
|
||||
public ReminderType Type { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(1000, ErrorMessage = "Message too long (1000 character limit).")]
|
||||
public string Message { get; set; }
|
||||
|
||||
public double HoursBeforeRaid { get; set; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue