Created
October 22, 2013 18:18
-
-
Save kidchenko/7105377 to your computer and use it in GitHub Desktop.
Linq para retornar apenas um sub-entidade sem obter a entidade por completa.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var juca = target.SelectMany(x => x.Entidade) | |
.SingleOrDefault(y => y.SubEntidade.Equals(argumento)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment