Files
everything/ProjecThing/Models/CodeTable/CodeTablePrePostText.cs
2026-06-16 18:04:55 +02:00

32 lines
754 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;
using ProjecThing.Models.CodeTable;
namespace ProjecThing.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; }
}
}