Incluir, atualizar e excluir dados no EF - Parte 1
- Posted: Apr 26, 2012 at 2:26 PM
- 2,682 Views
- 2 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Incluir, atualizar e excluir dados no EF - Parte 1
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Atravez desse curso (leitura e vídeos) eu finalmente entendí como funciona o Linq, mas ainda tenho uma dúvida: usando Sql, quando quero fazer uma consulta eu posso escolher quais os campos eu quero trazer da tabela, em vez de todos ( como quando uso * ). É possível fazer isso no Linq e Lambda ou eu tenho que obrigatoriamente puxar todos os campos de uma tabela sempre?
@RafaelMartins: Sim é possível e é muito simples até...
Ex:
object teste = from item in SUA_COLECAO
select new { item.Id, item.Observacao };
O detalhe está no 'new' e dentro da '{ }' você escolhe os campos.
Espero ter ajudado, abraços.
Guilherme Cruz
Remove this comment
Remove this thread
close