c# application.
I am doing a select followed by update of a column in a table. I am putting these in a separate transaction with isolation level set to Serializable. I am doing this to achieve data consistency.
But still I can check that multiple users are able to read (select) the same value and eventually trying to update with the same value.
Can anyone suggest how i can achieve consistency, such that
No two users read the same value.
No user read a value which is updated but not yet committed.