18 lines
495 B
C#
18 lines
495 B
C#
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Master
|
|
{
|
|
public class TechnicalUnit
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; } = default!;
|
|
public string Description { get; set; } = default!;
|
|
public Guid UnitTypeId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("UnitTypeId")]
|
|
public UnitType? UnitType { get; set; }
|
|
}
|
|
}
|