building.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233
  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. [Table("building")]
  9. public partial class building
  10. {
  11. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
  12. public building()
  13. {
  14. employye = new HashSet<employye>();
  15. info_move = new HashSet<info_move>();
  16. }
  17. [Key]
  18. [DatabaseGenerated(DatabaseGeneratedOption.None)]
  19. public int id_building { get; set; }
  20. [Required]
  21. [StringLength(50)]
  22. public string name { get; set; }
  23. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  24. public virtual ICollection<employye> employye { get; set; }
  25. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
  26. public virtual ICollection<info_move> info_move { get; set; }
  27. }
  28. }