Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. var tb_municipio_ws = _ServiceReaderClient.MunicipioListar();
  2.  
  3. if (tb_municipio_ws.Items != null || tb_municipio_ws.Item != null)
  4. {
  5. foreach (var item in tb_municipio_ws.Items)
  6. {
  7. var tbMunicipios = new TB_MUNICIPIOS
  8. {
  9. MUN_ID = item.MunId,
  10. /*
  11. ....
  12. */
  13. };
  14. _context.TB_MUNICIPIOS.Add(tbMunicipios);
  15. }
  16. }
  17. _context.SaveChanges();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement