Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Identity Column Counter Problem

$
0
0

Hello,

I am getting identity column counter problem.

Suppose Identity column Counter is 5.

And i am trying to insert record but suppose save operation failed two times but 3rd time suppose insert query worked successfully .

But problem is that now Identity column counter showing 8.

5 = default count

2= for failed operation

1 = is for successful save operation.

Please guide me ,what is the solution for that. Currently i am using transaction based save operation in EF 6.



Viewing all articles
Browse latest Browse all 18858

Trending Articles



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