Posts by Jeff Barros • 66 points
3 posts
-
3
votes2
answers5175
viewsA: Copy a List to another List without dependencies
When you assign a list to the other list in the traditional way ex: listA = listB. The listA will reference the same memory space as the listB. With this any change of the objects of one of the…
-
2
votes3
answers712
viewsA: Compare string to Enum, inside the lambda?
The value of this ddlCategoriaDiurna comes from Category 1, as an example? If so, you could read the value Description of your enum public static string Descricao(this System.Enum itemEnum) {…
-
0
votes3
answers922
viewsA: How to create a table (empty) from a selection of other tables?
With TOP 0 you will only have the definition of the columns, without their values. SELECT TOP 0 p.id_produto, p.nome_produto, m.nome_marca INTO tabela3 FROM tabela1 p INNER JOIN tabela2 m ON…