News for hackers. Stuff that matters.
Re:A todo list for new ASP.NET Core projects by rbobby on Thursday February 08, 2018 @05:09AM (#16331241)
> checking if the entity exists then trying to create it,

Checking first and failing can still be problematic without the right database isolation setting.

Better to try it and catch the database error (which might include another unique constraint other than primary key... depending on db design).

There are no comments on this comment yet.