Prvi commit
This commit is contained in:
33
EveryThing/Models/CodeTable/CodeTableJob.cs
Normal file
33
EveryThing/Models/CodeTable/CodeTableJob.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace EveryThing.Models.CodeTable
|
||||
{
|
||||
public class CodeTableJob
|
||||
{
|
||||
[Key]
|
||||
public int IdJob { get; set; }
|
||||
|
||||
[Required]
|
||||
[ForeignKey("Company")]
|
||||
public int IdCompanyFk { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Naziv")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
public bool Active { get; set; }
|
||||
|
||||
//ForeignKey
|
||||
public CodeTableCompany Company { get; set; }
|
||||
|
||||
//Employee
|
||||
[InverseProperty("Job")]
|
||||
public virtual ICollection<CodeTableEmployee> JobEmployee { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user