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;
|
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; }
|
|
|
|
|
|
|
2017-01-23 09:51:15 +01:00
|
|
|
|
[Required]
|
|
|
|
|
|
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
|
|
|
|
}
|