Advertisement
Guest User

Origineel

a guest
Apr 1st, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.59 KB | None | 0 0
  1. namespace LeerPlatform_Team2
  2. {
  3.     public partial class TblPlanning
  4.     {
  5.         public int PlanningId { get; set; }
  6.         public string Lokaalnummer { get; set; }
  7.         public string Lescode { get; set; }
  8.         public string Reekscode { get; set; }
  9.         [DisplayName("Start tijdstip")]
  10.         public DateTime StartTijdstip { get; set; }
  11.         [DisplayName("Eind tijdstip")]
  12.         public DateTime EindTijdstip { get; set; }
  13.         [DisplayName("Extra info")]
  14.         public string ExtraInfo { get; set; }
  15.  
  16.         public virtual TblLessen LescodeNavigation { get; set; }
  17.         public virtual TblLokalen LokaalnummerNavigation { get; set; }
  18.         public virtual TblLessenreeks ReekscodeNavigation { get; set; }
  19.     }
  20. }
  21.  
  22. using System;
  23. using System.Collections.Generic;
  24. using Microsoft.AspNetCore.Mvc;
  25.  
  26. namespace LeerPlatform_Team2
  27. {
  28.     public partial class TblLokalen
  29.     {
  30.         public TblLokalen()
  31.         {
  32.             TblPlanning = new HashSet<TblPlanning>();
  33.         }
  34.        
  35.         [Remote(action: "Validatelokaal", controller:"Lokalen",HttpMethod ="POST", ErrorMessage ="Dit lokaal bestaat al!")]
  36.         public string Lokaalnummer { get; set; }
  37.         public string Locatie { get; set; }
  38.         public int Capaciteit { get; set; }
  39.        
  40.         public int? FunctionaliteitenId { get; set; }
  41.        
  42.  
  43.         public virtual TblFunctionaliteiten Functionaliteiten { get; set; }
  44.         public virtual ICollection<TblPlanning> TblPlanning { get; set; }
  45.     }
  46. }
  47.  
  48. using System;
  49. using System.Collections.Generic;
  50.  
  51. namespace LeerPlatform_Team2
  52. {
  53.     public partial class TblLessenreeks
  54.     {
  55.         public TblLessenreeks()
  56.         {
  57.             TblPlanning = new HashSet<TblPlanning>();
  58.         }
  59.  
  60.         public string Reekscode { get; set; }
  61.         public string Titel { get; set; }
  62.         public int? Ingeschreven { get; set; }
  63.  
  64.         public virtual ICollection<TblPlanning> TblPlanning { get; set; }
  65.     }
  66. }
  67.  
  68. using System;
  69. using System.Collections.Generic;
  70. using System.ComponentModel.DataAnnotations;
  71.  
  72. namespace LeerPlatform_Team2
  73. {
  74.     public partial class TblLessen
  75.     {
  76.         public TblLessen()
  77.         {
  78.             TblPlanning = new HashSet<TblPlanning>();
  79.         }
  80.         [MaxLength(5)]
  81.         [Required]
  82.        
  83.         public string Lescode { get; set; }
  84.         [Required]
  85.         [MaxLength(50)]
  86.         public string Titel { get; set; }
  87.         [Required]
  88.         [Range(4,25)]
  89.         public int Studiepunten { get; set; }
  90.  
  91.         public virtual ICollection<TblPlanning> TblPlanning { get; set; }
  92.     }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement