yavsc/Yavsc/Models/Workflow/CommandForm.cs

21 lines
538 B
C#
Raw Normal View History

2017-01-23 09:51:15 +01:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Workflow
{
2017-01-24 10:43:42 +01:00
public class CommandForm
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; }
public string ViewName { get; set; }
2017-01-23 09:51:15 +01:00
public string Title { get; set; }
[Required]
public string ActivityCode { get; set; }
[ForeignKey("ActivityCode")]
public virtual Activity Context { get; set; }
}
}