Posts by Achilles Froes • 181 points
2 posts
-
1
votes3
answers1160
viewsA: Validation to check if the record is being used before deleting
However, I agree with Rsinohara, it would be much more to put a Try/catch inside the service delete, in the example below it works in SQL Server: public void Delete(int id) { try { var item =…
-
17
votes4
answers26848
viewsA: What’s the difference between DAO and Repository?
I’m sorry, but the Repository should not be associated with any business rule. Both the DAO and the Repository should be "dumb". A Repository is the class responsible for all access to data of an…