Prvi commit
This commit is contained in:
52
EveryThing/Models/CodeTable/CodeTableCountry.cs
Normal file
52
EveryThing/Models/CodeTable/CodeTableCountry.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using EveryThing.Models.Vehicle;
|
||||
|
||||
namespace EveryThing.Models.CodeTable
|
||||
{
|
||||
public class CodeTableCountry
|
||||
{
|
||||
[Key]
|
||||
public int IdCountry { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Naziv")]
|
||||
public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Koda države")]
|
||||
public string Code { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Slovenski naziv")]
|
||||
public string TranslationSlovenian { get; set; }
|
||||
|
||||
// Partner
|
||||
[InverseProperty("Country")]
|
||||
public virtual ICollection<CodeTablePartner> CountryPartner { get; set; }
|
||||
|
||||
//Employee
|
||||
[InverseProperty("Citizenship")]
|
||||
public virtual ICollection<CodeTableEmployee> CountryEmployeeCitizenship { get; set; }
|
||||
|
||||
//Employee
|
||||
[InverseProperty("Country")]
|
||||
public virtual ICollection<CodeTableEmployee> CountryEmployeeCountry { get; set; }
|
||||
|
||||
//Employee
|
||||
[InverseProperty("TemporaryCountry")]
|
||||
public virtual ICollection<CodeTableEmployee> CountryEmployeeTemporaryCountry { get; set; }
|
||||
|
||||
//Company
|
||||
[InverseProperty("Country")]
|
||||
public virtual ICollection<CodeTableCompany> CountryCompany { get; set; }
|
||||
|
||||
//VehicleFueling
|
||||
[InverseProperty("Country")]
|
||||
public virtual ICollection<VehicleFueling> CountryVehicleFueling { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user