Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace ProjektConsole.Domain
  9.  
  10. {
  11. [Serializable()]
  12. public class Opilane
  13. {
  14.  
  15. public string _eesnimi;
  16. public string _perenimi;
  17. public string _synniaeg;
  18. public string _ryhm;
  19. public string _kontakt;
  20. public bool IsActive;
  21.  
  22. public int OpilaneID { get; set; }
  23. [Required]
  24. [MaxLength(length: 30)]
  25. public string Eesnimi
  26. {
  27. get { return _eesnimi; }
  28. set
  29. {
  30. _eesnimi = value;
  31. }
  32. }
  33.  
  34. [Required]
  35. [MaxLength(length: 100)]
  36. public string Perenimi
  37. {
  38. get { return _perenimi; }
  39. set { _perenimi = value; }
  40. }
  41. [Required]
  42. [MaxLength(length: 10)]
  43. public string Synniaeg
  44. {
  45. get { return _synniaeg; }
  46. set { _synniaeg = value; }
  47. }
  48. [Required]
  49. [MaxLength(length: 5)]
  50. public string Ryhm
  51. {
  52. get { return _ryhm; }
  53. set { _ryhm = value; }
  54. }
  55. [Required]
  56. [MaxLength(length: 30)]
  57. public string Kontakt
  58. {
  59. get { return _kontakt; }
  60. set { _kontakt = value; }
  61. }
  62. public virtual List<Opilane_tunnis> Opilane_tunnis { get; set; }
  63.  
  64. public virtual List<Opilane_grupis> Opilane_grupis { get; set; }
  65. }
  66.  
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement