Posts by Elton Almeida Vieira • 97 points
4 posts
-
0
votes4
answers2106
viewsA: Value treatment null c#
Normally a block should be used Try/catch when information is exchanged between applications, in your case, between your software and the database. It is also good practice to use a log framework to…
-
2
votes3
answers1052
viewsA: How to filter a list type Ienumerable<> through another Ienumerable<>?
You can write your filter method with two parameters, one with the source list to be filtered and the other with the filters. Example: static IEnumerable<Mundo>…
-
5
votes6
answers1056
viewsA: How to make a Split for when there is a letter in the string?
You can use a list with the characters needed to split your array: using System.Collections.Generic; namespace SplitTest { class Program { static void Main(string[] args) { var text =…
-
1
votes3
answers99
viewsA: Problems with View Model Implementation
Use the conversion to list ". Tolist()" in the excerpt below: model.Evolucoes = _contexto.Evolucoes.Where(e => e.id_chamado == id).ToList();