act_repair.cs 888 B

12345678910111213141516171819202122232425262728
  1. namespace praktika_2
  2. {
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Data.Entity.Spatial;
  8. public partial class act_repair
  9. {
  10. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
  11. public act_repair()
  12. {
  13. repair = new HashSet<repair>();
  14. }
  15. [Key]
  16. [DatabaseGenerated(DatabaseGeneratedOption.None)]
  17. public int id_act { get; set; }
  18. [Required]
  19. [StringLength(50)]
  20. public string name_act { get; set; }
  21. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  22. public virtual ICollection<repair> repair { get; set; }
  23. }
  24. }