Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. arrayList.Add(new SqlParameter
  2. {
  3. ParameterName = "@ID",
  4. Direction = ParameterDirection.Output,
  5. SqlDbType = SqlDbType.Int
  6. });
  7. int result;
  8. try
  9. {
  10. base.ExecuteNonQuery("core_sp_save_customFieldModule", arrayList);
  11. result = (int)((SqlParameter)arrayList[arrayList.Count - 1]).Value;
  12. }
  13. catch (SqlException ex)
  14. {
  15. if (ex.Number != 2627)
  16. {
  17. throw ex;
  18. }
  19. result = -1;
  20. }
  21. finally
  22. {
  23. }
  24. return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement