Skip to content

Instantly share code, notes, and snippets.

Created February 15, 2013 00:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/4957692 to your computer and use it in GitHub Desktop.
Save anonymous/4957692 to your computer and use it in GitHub Desktop.
var dados = (from p in db.t0010_bairro
where p.t0001_cod_cidade == pCodCidade
select p).Max(c => c.t0010_cod_bairro);
if (dados != null) {
dados = dados + 1;
} else {
dados = 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment