DD.WellWorkover.Cloud/AsbCloudDb/Model/DrillingProgramPart.cs

27 lines
809 B
C#
Raw Normal View History

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_drilling_program_part"), Comment("части программ бурения")]
public class DrillingProgramPart
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("id_file_category")]
[Required]
public int IdFileCategory { get; set; }
[ForeignKey(nameof(IdFileCategory))]
public FileCategory FileCategory { get; set; }
[InverseProperty(nameof(RelationUserDrillingProgramPart.DrillingProgramPart))]
public virtual ICollection<RelationUserDrillingProgramPart> RelatedUsers { get; set; }
}
}