FmsMaterialCodeType.cs 786 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using Newtonsoft.Json;
  6. namespace FMSAdmin.Entities {
  7. public partial class FmsMaterialCodeType {
  8. public FmsMaterialCodeType() {
  9. FmsMaterial = new HashSet<FmsMaterial>();
  10. }
  11. [Key]
  12. public int MaterialTypeId { get; set; }
  13. [Required]
  14. [StringLength(24)]
  15. public string Name { get; set; }
  16. [Required]
  17. [StringLength(24)]
  18. public string Nickname { get; set; }
  19. public bool IsUse { get; set; }
  20. [JsonIgnore]
  21. [InverseProperty("FmsMaterialCodeType")]
  22. public virtual ICollection<FmsMaterial> FmsMaterial { get; set; }
  23. }
  24. }