InventoryManager / Models / Suppliers.cs
Suppliers.cs
Raw
using System.ComponentModel.DataAnnotations;

namespace InventoryManager.Models
{

    public class Suppliers
    {
        [Key]
        public int Id { get; set; }

        [Required]
        [StringLength(25)]
        public string Name { get; set; }

        [Required]
        [StringLength(75)]
        public string Address { get; set; }

        [Required]
        [StringLength(75)]
        public string Contact { get; set; }

        [Required]
        [StringLength(75)]
        public string Inforamtion { get; set; }
    }
}