Posts by Wilson Santos • 633 points
20 posts
-
3
votes1
answer84
viewsQ: Navigation Properties - Domain-Driven Design
Hello, I am studying DDD and came across the following question: There is the Aggregate (Aggregate), a set of related objects that have an Aggregation Root (Aggregate Root). So far so good, I…
-
0
votes2
answers1265
viewsA: MVC 5 Customer side validation
You must respect this sequence: 1 - jquery.unobtrusive-ajax.js // If you own Ajax 2 - jquery.validate.js 3 - jquery.validate.unobtrusive.js 4 - globalize.js 5 - jquery.validate.globalize.js 6 -…
-
0
votes1
answer52
viewsQ: Queuing Problems for Asynchronous Controllers
Hello, I’m having some problems regarding the Asynchronous Controllers, because the queuing of requisitions server keeps being locked to the client during some operation. The routines work exactly,…
-
0
votes1
answer79
viewsQ: Capture Stackoverflowexception
I have a problem with Stackoverflowexception in an application ASP.NET MVC and I can’t find what might be causing it. I installed the Elmah as suggested in another topic on the same problem, but it…
-
4
votes1
answer72
viewsQ: How to capture Stackoverflowexception
Hello, I am going through some problems on the server and with the application developed in MVC... I checked that the site was restarting the application pool alone, so I went to Event Viweer and…
-
1
votes1
answer44
viewsQ: Remove multiple protocol authentication
Hello, I am implementing the MVC with Asp.Net Identity, however, I’m having some problems... Setting: I’m logging in from protocol HTTP, everything enters normally. When I try to access any page…
-
1
votes1
answer120
viewsQ: Asynchronous Method Blocking Queue
I’m using MVC and so I approached asynchronous methods for Actions in Controllers in order not to block access to other pages of the site while a long-term process is taking place. However, I have…
-
2
votes1
answer278
viewsQ: How to avoid blocking requests?
I’m doing a project in ASP.NET MVC + IIS and realized that when making a request to a page with long reading in the Database (using Entity Framework), if I open another window and try to access any…
-
10
votes1
answer1562
viewsQ: Unit Of Work + Ioc + Idisposable
I’m putting together a project that I use Uow to facilitate the issue of transactions. In some scenarios, I use several repositories, persisting the data in memory to save at once in the BD using a…
-
5
votes1
answer270
viewsQ: Consume entity repository directly from the application layer
I have a scenario where I need to search for a list of Active Employees with Entity Framework and display them on the screen (I need to convert to Dtos before displaying - what I do through the…
-
2
votes2
answers814
viewsA: What is the most "clean" and clear way to validate entities using the Entity Framework
If this "clear" and "clean" way is the right way. If your application is for the user interface: • Create Dtos (View Models) and apply the Data Annotations attributes to it. Right after that, use…
-
6
votes1
answer111
viewsQ: Can LINQ be considered business rule?
Sometimes I pull active objects with LINQ expression. Utilise filtering with LINQ can be considered a business rule and in a scenario such as DDD (Domain-Driven Design)? What is the best place to…
-
8
votes1
answer809
viewsQ: Simple Injector + Uow + DDD + Multiple Contexts + Entity Framework
I need to know how to apply Ioc to two contexts. The scenario is as follows: I have a Layer called Core (allocates classes that I can reuse in other layers), where I put the interface of Idbcontext,…
-
6
votes1
answer201
viewsQ: Does the keyword "async" really make the asynchronous method?
I was seeing a video (at 31:11 minutes) and there says that async does not make the method really asynchronous, it is more a "hint". As it was in English and I am not totally advanced, it was half…
-
2
votes1
answer656
viewsA: Fill in a Dropdown (Select)
$.ajax({ type: ..., url: ..., datatype: "Json", data: { ... }, success: function (data) { if (data.length > 0) { $.each(data, function (index, value) { $('#Cidades').append('<option value="' +…
-
1
votes1
answer2059
viewsA: Display alert when loading page
Use the Razor Rendersection... It serves to create a section in the Layout for you to specify in the Views that implement where the code will be docked when rendered. You can use for scripting or…
-
0
votes1
answer79
viewsA: How to make a grouping in View Asp.net mv
Use LINQ: Groupby() var listar = tbuscar.ListarTodos("S","S").GroupBy(p => p.IDCATEGORIAVIDEO);
asp.net-mvcanswered Wilson Santos 633 -
2
votes1
answer138
viewsA: Many Relationship for Many ASP.NET Entity Framework
If it is of N-N you will have to create first of all intermediate tables for each entity in order not to interfere in the table structure. If it is 1-N between Ordemmanutencao-Equipamentos…
-
5
votes2
answers565
viewsA: What are ASP.NET MVC routes?
Routes would be the way to access Controller Actions (or basically, the URL). Example: Let’s say you have a Controller call Areacliente and within this controller have a Action call Listshopping. To…
-
3
votes3
answers899
viewsA: Convert data c#
Simply write NomeVariavel.ToShortDateString(); There is no reason to make it difficult when there are native features for these situations.