29 lines
1.0 KiB
C#
29 lines
1.0 KiB
C#
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 string Country { get; set; } = default!;
|
|
public string GSTNumber { get; set; } = default!;
|
|
public string ContactPerson { get; set; } = default!;
|
|
public string ContactEmail { get; set; } = default!;
|
|
public string ContactPhone { get; set; } = default!;
|
|
public Guid SupplierId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("SupplierId")]
|
|
public Supplier? Supplier { get; set; }
|
|
}
|
|
} |