Posts by gabrielbarceloscn • 141 points
4 posts
-
2
votes1
answer27
viewsA: Save the form so that when returning an error it does not erase the inputs
Right after the block catch, you are returning to View, without the Model: try { } catch (Exception ex) { ModelState.AddModelError(string.Empty, "Ocorreu uma falha. Tente novamente mais tarde."); }…
-
0
votes2
answers198
viewsA: How to walk a C#class?
You want to generate an update/Insert query for class properties? If so, I recommend using Dapper to help you. It’s a C# library created by the Stackoverflow team. It’ll help you a lot: Dapper Look…
-
1
votes3
answers483
viewsA: Is it Unviable to use Domain-Driven Design working alone?
I would recommend using DDD even if you programming alone, unless the project is small, and has no complex business rules. The DDD forces you to understand more about the domain, and this…
-
1
votes4
answers671
viewsA: Can I use Repository to do the BLL part?
I have implemented business rules (BLL) within Repository classes (DAO). I didn’t see any problem with that, and it’s very practical. When necessary, you can easily refactor the code, and extract…