Exemplo n.º 1
0
        public UserGrades()
        {
            InitializeComponent();

            using (var db = new SchoolEntities())
            {
                var query = db.GetStudentGrades(Client.ID);

                dataGridViewGrades.DataSource = query.ToList();
            }
        }