Posts by Kevin • 470 points
9 posts
-
2
votes1
answer164
viewsQ: Repository Pattern - Usage Doubt
Good night, you guys. I was developing a software and started thinking about what would be the best way to implement the Repository Pattern. I have to return to the data controller of cities and…
-
1
votes4
answers872
viewsA: I need different ways to rearrange characters within a string, how do I do that?
Simple, use Reverse to convert the string into a reverse array and compare it to the original value. public bool EhPalindromo(string text) { var reverseText = string.Join("",…
-
1
votes3
answers163
viewsA: Viewdata is not displaying message
Why use Html.Encode ? Use @Viewdata["Feedback"]
-
3
votes2
answers684
viewsQ: Filtering Kids Collection in Entity Framework with Lambda
I have a case where I need to bring all the items of the parent object where you have a certain condition, example: ctx.Pai .Where(x=> x.Ativo == true) .Include(Filhos)…
-
5
votes3
answers185
viewsQ: Ifs and Object Orientation - C#
I have a question about how to replace IF with polymorphism. I will give the following example: Let’s say I have the classes ExecucaoIndividual and ExecucaoGeral. For this I created an interface to…
-
0
votes3
answers972
viewsA: Independent Project Injection of Dependencies Ninject
I managed to solve my problem, in the Crosscutting layer I installed Ninject, and realized bind’s concrete class/interfaces, in the View layer (MVC/Webapi) I also installed Ninject, and in the…
asp.net-mvcanswered Kevin 470 -
3
votes1
answer106
viewsQ: How to make a MVC 6 application available (Aspnet 5)
I worked with Asp.net for a while and I don’t have much knowledge on the infrastructure part, I always published my apps by visual studio and then on the server, I added a new application by IIS,…
asp.net-mvcasked Kevin 470 -
0
votes3
answers972
viewsQ: Independent Project Injection of Dependencies Ninject
Hello! I’m using the DDD type architecture to do a project, in it I have the Crosscutting layer, and in this layer I thought of adding a class library project with Ninject so that it does not stay…
asp.net-mvcasked Kevin 470 -
19
votes5
answers440
viewsQ: What would an Agile Development Process look like?
In the company I work, we have not adopted a final methodology to use, and we are thinking of adopting agile development in the next projects. What would an agile process look like? I need to create…