예제 #1
0
        void Refresh()
        {
            Sistema_ImoveisEntities dc = new Sistema_ImoveisEntities();
            var prop = from Proprietario in dc.Proprietario select Proprietario;

            grdProprietario.DataSource = prop.ToList();
        }
예제 #2
0
        private void frmImoveis_Load(object sender, EventArgs e)
        {
            Sistema_ImoveisEntities dc = new Sistema_ImoveisEntities();
            var imopro = (from Imovel in dc.Imovel join Proprietario in dc.Proprietario on Imovel.ImoIDPro equals Proprietario.ProID select Imovel).ToList();

            foreach (var imopros in imopro)
            {
            }
            dgvImo.DataSource = imopro;
        }