yavsc/Yavsc/Models/Workflow/CommandForm.cs

23 lines
612 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-02-02 15:13:32 +01:00
using YavscLib;
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-01-23 09:51:15 +01:00
public string Title { get; set; }
[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; }
}
}