Posts by Bruno Costa • 26 points
5 posts
-
0
votes2
answers159
viewsA: How to use the Where clause with Inno?
You have to go through the Object: { var people = Db.Person.Getall(). Where(a=> a.PersonNatureza.Persontype == 0). Tolist(); }
-
1
votes1
answer374
viewsA: Doubt to enter record with foreign key. ENTITY FRAMEWORK
When we use the Entity, we cannot set the field ID with the primary table value, we should use it in object form. Make a query and turn a variable into an object, and arrow its object empresa class…
-
0
votes1
answer147
viewsA: Improve Process Performance C#
Every new Voce Insert uses an Entity Framework expression: this Refreshcontext(); This will renew your context, causing the Entity’s memory to not accumulate.
-
0
votes1
answer651
viewsA: Filter a NULL type in lambda Expression or Line
You can make the direct comparison of your object: return Context.MatriculaInscricaoAluno.Where(p => p.Titulo == null).ToList().Count();
-
-1
votes2
answers157
viewsA: Create a Join between two classes in my repository
var lista = Entity<PessoaCadastro>() .GetAll() .Select(a=>a.Pessoas) .Where(a=> a.PessoaTipo == 1 && a.PessoaId == "seuID") .ToList(); Or if it’s a list of Ids: var lista =…