Neuerstellung

This commit is contained in:
maier_st
2024-10-25 13:35:06 +02:00
parent 4ed5b535da
commit 689993b05a
2293 changed files with 288667 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
namespace FSI.BT.IR.Organization.Db.Models
{
public class Organization
{
[Key]
public int Id { get; set; }
[DisplayName("Bezeichnung")]
[Required(ErrorMessage = "Pflichtfeld")]
[StringLength(64)]
public string Name { get; set; }
[DisplayName("Kurzname")]
[Required(ErrorMessage = "Pflichtfeld")]
[StringLength(16)]
public string ShortName { get; set; }
[DisplayName("Beschreibung")]
[StringLength(128)]
public string? Description { get; set; }
[DisplayName("Übergeordnetes Objekt")]
public int? ParentId { get; set; }
[DisplayName("Typ")]
[Required(ErrorMessage = "Pflichtfeld")]
public OrganizationType Type { get; set; }
[DisplayName("Erstellungsdatum")]
[Required(ErrorMessage = "Pflichtfeld")]
public DateTime Created { get; set; }
[DisplayName("Bearbeitungsdatum")]
[Required(ErrorMessage = "Pflichtfeld")]
public DateTime Updated { get; set; }
[DisplayName("Bereich")]
public string FullShortName { get; set; }
public virtual Organization? Parent { get; set; }
public virtual ICollection<Organization> Parents { get; set; }
}
}