Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var resource = new Resource() { url = tbUrl.Text };
- try
- {
- context.Resource.AddObject(resource);
- context.SaveChanges();
- }
- catch(UpdateException ex)
- {
- // how to know exactly which is why the error occurred
- }
- catch (Exception ex)
- {
- throw;
- }
Add Comment
Please, Sign In to add comment