Using YaStringLength and YaRequired
This commit is contained in:
parent
7d9495e326
commit
9457ba71d1
62 changed files with 396 additions and 150 deletions
|
|
@ -5,6 +5,8 @@ using Newtonsoft.Json;
|
|||
namespace Yavsc.Models.Workflow
|
||||
{
|
||||
using Yavsc;
|
||||
using Yavsc.Attributes.Validation;
|
||||
|
||||
public class CommandForm : ICommandForm
|
||||
{
|
||||
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
|
@ -14,7 +16,7 @@ namespace Yavsc.Models.Workflow
|
|||
|
||||
public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
[YaRequired]
|
||||
public string ActivityCode { get; set; }
|
||||
|
||||
[ForeignKey("ActivityCode"),JsonIgnore]
|
||||
|
|
|
|||
Loading…
Reference in a new issue