Skip to content

Instantly share code, notes, and snippets.

@jpolvora
Forked from anonymous/linq.cs
Last active December 14, 2015 00:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpolvora/4999204 to your computer and use it in GitHub Desktop.
Save jpolvora/4999204 to your computer and use it in GitHub Desktop.
var dados = (from p in db.t0010_bairro
where p.t0001_cod_cidade == pCodCidade
select (int?)p.t0010_cod_bairro).Max() ?? 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment