yavsc/src/Yavsc.Server/Models/Workflow/CommandForm.cs

25 lines
641 B
C#
Raw Normal View History

2017-01-23 09:51:15 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2017-01-31 13:19:12 +01:00
using Newtonsoft.Json;
2017-01-23 09:51:15 +01:00
namespace Yavsc.Models.Workflow
{
2017-05-27 16:22:58 +02:00
using Yavsc;
2019-09-04 01:25:36 +01:00
using Yavsc.Attributes.Validation;
2017-02-02 15:13:32 +01:00
public class CommandForm : ICommandForm
2017-01-23 09:51:15 +01:00
{
2017-01-24 10:43:42 +01:00
[Key,DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
2017-03-01 10:11:20 +01:00
public string ActionName { get; set; }
2017-01-24 10:43:42 +01:00
2017-05-27 16:22:58 +02:00
public string Title { get; set; }
2026-03-09 02:07:09 +00:00
[Required]
2017-01-23 09:51:15 +01:00
public string ActivityCode { get; set; }
2017-01-31 13:19:12 +01:00
[ForeignKey("ActivityCode"),JsonIgnore]
2017-01-23 09:51:15 +01:00
public virtual Activity Context { get; set; }
}
2017-05-27 16:22:58 +02:00
}