Posts by Gabriel Sturki • 11 points
1 post
-
1
votes2
answers120
viewsA: Lambda expression to return a Person in the repository - DDD and Aspnet.Core
Don’t you have a field in the table that indicates the document? Like CPF or CNPJ? Try to do this: var pessoa = Db.Pessoa.Where(x => x.PessoaId == id).FirstOrDefault(); if (pessoa.Natureza ==…