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,9 +1,13 @@
|
|||
namespace Lieb.Models
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Lieb.Models
|
||||
{
|
||||
public class LiebRole
|
||||
{
|
||||
public int LiebRoleId { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(40, ErrorMessage = "RoleName too long (40 character limit).")]
|
||||
public string RoleName { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<RoleAssignment> RoleAssignments { get; set; } = new List<RoleAssignment>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue