prvi
This commit is contained in:
31
EveryThing/Models/CodeTable/CodeTablePrePostText.cs
Normal file
31
EveryThing/Models/CodeTable/CodeTablePrePostText.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
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.CodeTable;
|
||||
|
||||
namespace EveryThing.Models.CodeTable
|
||||
{
|
||||
public class CodeTablePrePostText
|
||||
{
|
||||
[Key]
|
||||
public int IdPrePostText { get; set; }
|
||||
|
||||
[Required]
|
||||
[ForeignKey("Company")]
|
||||
public int IdCompanyFk { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Vrsta")]
|
||||
public string Type { get; set; }
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Vsebina")]
|
||||
public string Content { get; set; }
|
||||
|
||||
// ForeingKey
|
||||
public CodeTableCompany Company { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user