Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to run the InsertAllAsync completely even when it thrown exception

$
0
0

Hi I am using InsertAllAsync method to insert few records in to the database. There is a primary key constraint on the table. But I am getting few duplicate values on the primary key. If I keep a for loop and do InsertAsync I am able to insert all records ignoring duplicate records, but InsertAllAsync throwing exception "Constraint" and not inserting single record in the db. Please let me know any other way to ignore the "Constraint Exception". I have to use only InsertAllAsync.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>