Next privilege 125 Rep.
Next badge 0/1
0 people reached
- 0 posts edited
- 0 helpful flags
- 5 votes cast
Extension method naming convention
@Konrad - but how long will finding the next localization bug take? IMO it's better not to catch those exceptions, so that you can find the bugs earlier in the development/test cycle.
Is there already a commonly known name for the 'ensure pattern'?
You state "my Ensure method ensures that there is always a populated entity with specified properties" but according to your point #2 it actually does not - if there was a preexisting entity with different properties then you just return it. If you did an insert-or-update instead then it would always have an entity with those properties, and that operation is sometimes called