19 lines
607 B
C#
19 lines
607 B
C#
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Marco.Pms.Model.Master
|
|
{
|
|
public class GlobalActivityMaster
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string ActivityName { get; set; } = string.Empty;
|
|
public string UnitOfMeasurement { get; set; } = string.Empty;
|
|
public Guid ActivityGroupId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ActivityGroupId")]
|
|
public GlobalActivityGroupMaster? ActivityGroup { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|