17 lines
492 B
C#

using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marco.Pms.Model.Master
{
public class StateMaster
{
public Guid Id { get; set; }
public string Name { get; set; } = default!;
public string StateCode { get; set; } = default!;
public Guid CountryId { get; set; }
[ValidateNever]
[ForeignKey("CountryId")]
public CountryMaster? Country { get; set; }
}
}