| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- using System.ComponentModel.DataAnnotations;
- namespace CD67.FicheCollege.Entity
- {
- /// <summary>
- /// Classe d'extension de celle d'Entity, nécessaire pour y associer les Metadata
- /// </summary>
- [MetadataType(typeof(College_Metadata))]
- public partial class College
- {
- public string AdresseComplete => $"{this.Adresse}\n{this.Code_Postal} {this.Commune}";
- }
- /// <summary>
- /// Classe contenant les DataAnnotations pour chaque champ
- /// </summary>
- public class College_Metadata
- {
- [Required]
- public string Id { get; set; }
- [Required]
- [Display(Name = "Code RNE du collège")]
- public string CodeRne { get; set; }
- [Required]
- [Display(Name = "Année scolaire")]
- public string Annee_Id { get; set; }
- [Required]
- [Display(Name = "Nom")]
- public string Libelle { get; set; }
- [Display(Name = "Adresse")]
- public string Adresse { get; set; }
- [Display(Name = "Code postal")]
- public string Code_Postal { get; set; }
- [Display(Name = "Type d'établissement")]
- public int TypeCollege_Id { get; set; }
- [Display(Name = "Code INSEE")]
- public string Commune_Insee { get; set; }
- [Required]
- [Display(Name = "Commune")]
- public string Commune { get; set; }
- [Display(Name = "Canton de rattachement")]
- public string Canton { get; set; }
- [Display(Name = "Territoire de rattachement")]
- public string Territoire_Id { get; set; }
- [Display(Name = "TAD")]
- public string TAD { get; set; }
- [Display(Name = "CDC")]
- public string CDC { get; set; }
- [Display(Name = "Téléphone")]
- public string Tel { get; set; }
- [Display(Name = "Fax")]
- public string Fax { get; set; }
- [Display(Name = "EMail")]
- public string Email { get; set; }
- [Display(Name = "Principal")]
- public string PrincipalSid { get; set; }
- [Display(Name = "Adjoint")]
- public string AdjointSid { get; set; }
- [Display(Name = "Gestionnaire 1")]
- public string Gestionnaire1Sid { get; set; }
- [Display(Name = "Gestionnaire 2")]
- public string Gestionnaire2Sid { get; set; }
- }
- }
|