Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

I have a repository that looks like this

$
0
0
public void Update(List<T> entity)
{
 if (entity == null)
                    throw new ArgumentNullException("entity");

                this._context.SaveChanges();
}

now i want to add a concurrency check, and if a record fails the check it doesn't get update but doesn't stop the others being updated, everything I have seen uses try catch but i am not sure how i get arround it.

Any thoughts would be appriciated.


Viewing all articles
Browse latest Browse all 1698

Trending Articles