private void Window_Loaded(object sender, RoutedEventArgs e) { var rep = new RepositoryBase<Medico>(); ShareList = new ObservableCollection<MedicoGrid>(); rep.Listar().Select(x => new MedicoGrid() { Nome = x.Nome, CRM = x.CRM }).ToList().ForEach(x=> ShareList.Add(x)); DataContext= ShareList; }