marco.pms.api/Marco.Pms.Model/Inventory/SupplierStateMapping.cs

36 lines
1.1 KiB
C#

using Marco.Pms.Model.Directory;
using Marco.Pms.Model.Master;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marco.Pms.Model.Inventory
{
public class SupplierStateMapping
{
public Guid Id { get; set; }
public Guid StateId { get; set; }
[ValidateNever]
[ForeignKey("StateId")]
public StateMaster? State { get; set; }
public string Street { get; set; } = default!;
public string CityName { get; set; } = default!;
public string PinCode { get; set; } = default!;
public Guid CountryId { get; set; }
[ValidateNever]
[ForeignKey("CountryId")]
public CountryMaster? Country { get; set; }
public string GSTNumber { get; set; } = default!;
public Guid ContactId { get; set; }
[ValidateNever]
[ForeignKey("ContactId")]
public Contact? Contact { get; set; }
public Guid SupplierId { get; set; }
[ValidateNever]
[ForeignKey("SupplierId")]
public Supplier? Supplier { get; set; }
}
}