28 lines
901 B
C#

using HRD.WebApi.DAL;
using System.ComponentModel.DataAnnotations.Schema;
namespace DAL.Models.Entities
{
public partial class DocumentArt : BaseEntity
{
public int DocumentArtId { get; set; }
public string Name { get; set; }
public string Shortname { get; set; }
public string RootPath { get; set; }
public string Folder { get; set; }
public string Comment { get; set; }
public int ClientId { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public string DepartmentNamesList { get; set; }
//generic Id
public override int GetEntityId() => DocumentArtId;
//generic ToString()
public override string ToString() => $"DocumentArtId: {GetEntityId()}; Name: {Name}";
//generic EntityInfo()
public override string EntityInfo() => base.EntityInfo();
}
}