//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated from a template.
//
//     Manual changes to this file may cause unexpected behavior in your application.
//     Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ETSStariGrad
{
    using System;
    using System.Collections.Generic;
    
    public partial class student
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public student()
        {
            this.PrijavaIspitas = new HashSet<PrijavaIspita>();
            this.Prijava_brojIndeksa = new HashSet<Prijava_brojIndeksa>();
            this.student_predmet = new HashSet<student_predmet>();
            this.zapisniks = new HashSet<zapisnik>();
        }
    
        public int ID_STUDENTA { get; set; }
        public string IME { get; set; }
        public string PREZIME { get; set; }
        public string SMER { get; set; }
        public short BROJ { get; set; }
        public string GODINA_UPISA { get; set; }

        public override string ToString()
        {
            return $"{IME} {PREZIME} {SMER}-{BROJ}/{GODINA_UPISA}";
        }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PrijavaIspita> PrijavaIspitas { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<Prijava_brojIndeksa> Prijava_brojIndeksa { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<student_predmet> student_predmet { get; set; }
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<zapisnik> zapisniks { get; set; }
    }
}
