Posts by Uitan Maciel • 193 points
20 posts
-
0
votes0
answers11
viewsQ: Doubt regarding the use of Aggregates in Area Code
I am hurting the principles of DDD and concept of Aggregates if using one agraregate within another as the scenario below? Context of a small e-commerce. Aggregate - Store public class Store {…
dddasked Uitan Maciel 193 -
2
votes1
answer449
viewsA: Creating a modal with delete function . Net Core 2.0
You can do without using ajax as below View Index <a href="#deleteEmployeeModal" class="delete" data-toggle="modal" data-id="@item.Id"><i class="fas fa-trash" data-toggle="tooltip"…
-
0
votes1
answer363
viewsA: How to get user logged in to the view?
If you are using Identity just do so: Na View @using Microsoft.AspNetCore.Identity; @inject SignInManager<ApplicationUser> SignInManager @inject UserManager<ApplicationUser> UserManager…
-
0
votes1
answer36
viewsQ: Customizing External Identity login on custom buttons
I’m trying to implement Externallogin in a web application with Facebook and Google, and the login screen is customized. As I am using DDD and CQRS, I have Identity uncoupled from the Asp.net core…
asp.net-coreasked Uitan Maciel 193 -
2
votes2
answers679
viewsQ: How to pass a parameter from one Action to another Action in the same Controller
I need to send a parameter from one action to another action in the same controller, but the parameter is "reset". How can I do this? Down with the code I’m making: [Authorize] public class…
-
0
votes1
answer32
viewsA: Application without access to the Database after publication in Azure
The solution was simple. While uploading configuration files with connectionString and migrations, it was necessary to update this file via FTP (without automatic VS publication) with the Azure…
-
1
votes2
answers209
viewsA: Add subitems between groups with Linnus
I decided as follows: //Fiz uma consulta geral no DB e agrupei por mês var qry = _planoDeContasRepository.GetAll() .GroupBy(x => x.Month).ToList(); //Pecorre a consulta aplicando o filtro e…
-
-1
votes1
answer32
viewsQ: Application without access to the Database after publication in Azure
I published an Asp.Net Core 2.1 application in Azure, I made the Migrations, the database and tables were created normally, I can see the whole structure of the database by VS, but the application…
-
1
votes1
answer125
viewsA: CSS does not load after publication in Azure
Solved. Layouts View usually has tag formatting <enviroment include> and <enviroment exclude> as I posted in the question. I just delete this tags leaving the calls with default html…
-
-2
votes1
answer125
viewsQ: CSS does not load after publication in Azure
I published an Asp.Net Core 2.1 application in Azure, but the CSS does not work, so the application is all messed up. In development environment, my application works normally. I noticed in devtools…
-
1
votes2
answers209
viewsQ: Add subitems between groups with Linnus
How can I perform calculations between subsets of a group by query in English? Follow example: Consulta Linq var listPlanoDeContas = (from t in _planoDeContasRepository.GetAll() orderby t.Month…
-
0
votes1
answer17
viewsA: I need to get the value of Navigation Properties
As already answered in another similar topic, just generate a query with the Include type method: public IEnumerable<Orcamento> FindAll() { return DbSet.Include(p > p.PlanoDeContas).Where(c…
-
0
votes1
answer17
viewsQ: I need to get the value of Navigation Properties
Friends, how do I show in my View information through a navigation property, like: My View: <div class="panel-body"> <div class="table-responsive"> <table class="table table-striped…
-
0
votes0
answers161
viewsQ: Get value from an entity via navigation property
I have a question that seems basic, but I’m racking my brain to solve. How can I get the value of an entity attribute via Properties Navigations? For example, I have the classes: public class Budget…
-
2
votes1
answer1998
viewsQ: Dependency Injection - Error: Invalidoperationexception: Unable to resolve service for type
Friends, once again I come to you for help. When trying to call an Action from my Controller I am getting the problem described below: An unhandled Exception occurred while Processing the request.…
-
1
votes1
answer222
viewsQ: Migration does not recognize Context
I’m developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First. I’m using the SQL as database. I have installed everything that was needed.…
-
0
votes1
answer192
viewsQ: Problems with Migration
I’m developing an application using DDD architecture. In my Infra layer, I have my data models, all based on Code First. I’m trying to use the Mysql as database. I have installed everything that was…
-
0
votes3
answers720
viewsA: Dropdownlistfor how to use?
In the Domain: public class ServiceProvider { #region Attributs public int ServiceProviderId { get; set; } public string Name { get; set; } public string MotherName { get; set; } public string…
-
3
votes3
answers720
viewsQ: Dropdownlistfor how to use?
I’m having a question on how popular and then pick up the selected item from a DropDownListFor, I am using DDD architecture and Entity Framework. In case here my class ServiceProviderViewModel has…
-
3
votes1
answer269
viewsQ: Help with Action Edit and Delete returning null
I am developing an application but I have a problem with Edit and Delete actions. I have looked at the code several times, but calling the cited actions shows the following error: The Parameters…