Prvi commit

This commit is contained in:
David Štaleker
2023-05-12 09:00:07 +02:00
parent d3ffe93e42
commit 03b92525d7
14757 changed files with 9251133 additions and 53 deletions

View File

@@ -0,0 +1,37 @@
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 CodeTableDepartement
{
[Key]
public int IdDepartement { 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("Departement")]
public virtual ICollection<CodeTableEmployee> DepartementEmployee { get; set; }
//Vehicle
[InverseProperty("Departement")]
public virtual ICollection<Vehicle.Vehicle> DepartementVehicle { get; set; }
}
}