48 lines
1.3 KiB
C#
48 lines
1.3 KiB
C#
using Marco.Pms.Model.Entitlements;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Marco.Pms.Model.Projects
|
|
{
|
|
public class Project
|
|
{
|
|
[Key]
|
|
public int Id { get; set; }
|
|
[Required]
|
|
[DisplayName("Project Name")]
|
|
public string Name { get; set; }
|
|
|
|
[DisplayName("Project Address")]
|
|
public string ProjectAddress { get; set; }
|
|
|
|
[DisplayName("Contact Person")]
|
|
|
|
public string ContactPerson { get; set; }
|
|
|
|
public DateTime? StartDate { get; set; }
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
[DisplayName("Project Status")]
|
|
public int ProjectStatusId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(ProjectStatusId))]
|
|
public StatusMaster ProjectStatus { get; set; }
|
|
|
|
[DisplayName("TenantId")]
|
|
public int TenantId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(TenantId))]
|
|
public Tenant Tenant { get; set; }
|
|
}
|
|
}
|