private static object[] getMedicos()
        {
            DC dc = new DC();

            var x = (from m in dc.Medicos
                     select m);
            object[] medicos = x.ToArray();
            return medicos;
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DC dc = new DC();

            var x = (from m in dc.Medicos
                     select m);

            Medico medico = x.FirstOrDefault();

            textBox1.Text = medico.medico_apellido + ", " + medico.medico_nombre;
        }
        void OnClickVer(Object sender, EventArgs e)
        {
            DC dc = new DC();

            int idMedicoSeleccionado = ((Medico)this.comboDoctores.SelectedItem).medico_id;

            var x = (from m in dc.MedicoxDias
                     where m.idMedico == idMedicoSeleccionado
                     select m
            );

            Console.Write(x);
        }