validation d'une fonctionnalité
This commit is contained in:
parent
95dbdb48ac
commit
7fc471e00e
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using Yavsc.Attributes.Validation;
|
||||||
|
|
||||||
namespace Yavsc.Models.IT.Maintaining
|
namespace Yavsc.Models.IT.Maintaining
|
||||||
{
|
{
|
||||||
|
|
@ -7,7 +8,11 @@ namespace Yavsc.Models.IT.Maintaining
|
||||||
{
|
{
|
||||||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
public long Id { get; set; }
|
public long Id { get; set; }
|
||||||
|
|
||||||
|
[YaStringLength(256,MinLen=3)]
|
||||||
public string ShortName { get; set; }
|
public string ShortName { get; set; }
|
||||||
|
|
||||||
|
[YaStringLength(10*1024,MinLen=3)]
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public FeatureStatus Status { get; set; }
|
public FeatureStatus Status { get; set; }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue