32 lines
781 B
C#
32 lines
781 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using ProjecThing.Models.CodeTable;
|
|
|
|
namespace ProjecThing.Models.Project
|
|
{
|
|
public class ProjectPartItemOperation
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("ProjectPartItem")]
|
|
public int IdProjectPartItemFk { get; set; }
|
|
|
|
[Required]
|
|
[ForeignKey("Operation")]
|
|
public int IdCodeTableOperationFk { get; set; }
|
|
|
|
[Required]
|
|
public bool Finished { get; set; }
|
|
|
|
[Required]
|
|
public short Order { get; set; }
|
|
|
|
|
|
public CodeTableOperation Operation { get; set; }
|
|
public ProjectPartItem ProjectPartItem { get; set; }
|
|
}
|
|
}
|