Posts by Master JR • 1,853 points
173 posts
-
0
votes0
answers39
viewsQ: Datatable lines coming together and getting thick
I have a Datatable Bootstrap that is loaded in two parts: Header is loaded using HTML normally and lines are loaded via Javascript. The problem is that when the lines come together, they create as…
-
0
votes0
answers44
viewsQ: Create a css file with Bootstrap classes
I’m sorry for the lame question, but I just started with css and I’m having a question: I will have to repeat several DIVS (with the same panel and bg-blue-Grey-100 bootstrap styles) on several…
-
1
votes2
answers1031
viewsQ: How to create a panel that Displays/Hides fields using Html/Bootstap/Javascript
I need to implement on a screen, a search panel that needs to appear when I click the button (Advanced Search) and within that panel there should be a "Close" button that, when clicked, will hide…
-
1
votes1
answer1895
viewsQ: How to adjust the size of a generic Modal Bootstrap window according to the desired View
I have a generic bootstrap modal window that will open several views. The problem is that each of them will have a different screen size and currently, my settings remain fixed(style="width: 800px;…
-
1
votes3
answers172
viewsA: Modal Bootstrap window does not display styles in components - Asp.net MVC
Person, after much exhausting research and patience I found the solution on this site: Problem solving All I had to do was add the script below: <script> $('#mySelect2').selectpicker({…
-
0
votes3
answers172
viewsQ: Modal Bootstrap window does not display styles in components - Asp.net MVC
I have a problem that I haven’t been able to solve in months! I’m using a package of bootstrap and JS styles, in which they refer to my _Layout. On all pages that are rendered and inherited from the…
-
1
votes1
answer157
viewsQ: Postgre - Field Id (Integer) of a table can go from 1 to how much?
I have a table in Postgre whose Id field is Integer type and primary key. As records are saved, the numbering goes from 1 to how much? I’m used to the Dataflex database, where table records (by…
-
1
votes1
answer80
viewsQ: Problems with Entada mask removal in Partialviews - Asp.Net Core
I’m having trouble with input masks (bootstrap) on all screens. I found the following interesting: All my Views that are returned in the form of "Partialview", the input masks do not work. For…
-
0
votes1
answer135
viewsQ: Javascript onClick event does not work with data-modal - Asp.Net Core MVC
I have a Datatable in my Index where the lines are loaded using Javascript. The Edit, Details, Delete and History buttons are created together. They all open in a modal window (the modal block is…
-
1
votes1
answer1174
viewsQ: Problems loading a Datatable in Page Load with Javascript
I’m a beginner with Javascript and I’m having a problem when the Datatable of my Index is loaded. If I open a section, on my Index, and put the JS code inside it, everything works perfectly. @{…
-
0
votes0
answers49
viewsQ: Good Practices Asp.net Core MVC: Creating a Dropdown for a current record to be used globally across the system
I have a question: I am creating a backward system in Asp.net core mvc and in my _Layout.cshtml I need to create and load a dropdown listing all the AFFILIATES of the system so that the user selects…
-
1
votes2
answers1192
viewsQ: How to apply a zip code mask to a datatable column using Javascript?
I have a Datatable in my View Index that has the CEP column that needs to have a CEP mask (ex: 29780-000). Does anyone know how to do this using Javascript? <table class="table table-hover…
-
2
votes1
answer1545
viewsQ: Position focus in a field of a modal window - Javascript and Asp.net MVC
I have a view model that has a block that opens modal windows for CRUD actions. I have 4 partial viewls: create, delete, Details and Edit ... All have the Description (Description) field in common.…
-
0
votes1
answer102
viewsQ: Event click javascript does not call the action - Asp.net Core
I created a modal block to display my View Create. When you click on btnNovo, a javascript event should call my Action Create to return a blank view and click inside the modal... Only the modal is…
-
0
votes0
answers340
viewsQ: Configure my Datatable (Bootstrap) headers padding using Javascript and CSS
I need to configure the padding of my Datatable (Bootstrap) headers through Javascript and CSS, because the arrows are getting too close to the header titles and getting cluttered when the columns…
-
1
votes1
answer895
viewsQ: How to group buttons inside a column into a table so that they do not change when the column is adjusted
I have a table that has 4 action buttons inside a cell of a column. When the names start to get larger in character, the table starts to auto-adjust and in the Actions column, the 4 buttons are…
-
1
votes1
answer1058
viewsQ: How to increase the width of table columns and adjust the width of the Javascript modal window
I need to adjust two things in a Modal Bootstap/javascript window: 1 - The width and height of the modal window; 2 - Table column names are breaking to a new row and deforming the appearance. I need…
-
0
votes1
answer168
viewsQ: High box input in Asp.net
I am creating an application in MVC with DDD and on my registration screens, I would like the fields string as NomeCompleto, Endereço, Cidade, etc, were saved on displayed in inputs in high box. I…
-
0
votes1
answer231
viewsQ: Questions about using the GUID type instead of int
I see many models of systems on the net where Id fields are set with GUID type instead of INT, as in the example below: public class Product { public Guid Id { get; protected set; } public string…
-
0
votes0
answers147
viewsQ: Problems returning a Iqueryable<> list to convert it with Automapper
I have a function that returns me a list of people with their personal/legal relationships. I own a Personal Viewmodel that is already mapped in the Autommapper layer... When I call the Getjoinall()…
-
0
votes2
answers159
viewsQ: How to use the Where clause with Inno?
I need to make a Join between the person and people tables so that the core Entity Framework brings a corresponding record. Let me be clearer: In the personal tableentity, I sort my register of…
-
1
votes1
answer208
viewsQ: Adjust the alignment of the dropdownlist in a Bootstrap navbar
I don’t know if I’m doing this correctly, but I need to create a dropdown list on my navbar to show a list of branches that will come from the database. The problem is that when I insert it, it is…
-
1
votes1
answer318
viewsQ: How to pick up the percentage of Postgre database storage space via EF Core in Asp.net Core
I need to create in my application a feature that checks in the database (PostGreSQL) the percentage of storage space used to be shown in a graph. I have a generic repository, and I thought I’d…
-
0
votes0
answers186
viewsQ: SQL script to adjust decimal point of a column - Postgresql
I have a table in Postgresql that has the field IdProduto and Quantidade. The values in the column Quantidade were recorded to the wrong decimal places. Ex: It was recorded 9000,000 when it should…
-
0
votes1
answer257
viewsQ: Problems when giving Post on a Viewmodel to the Controller - Asp.Net Core 2 MVC
I have a Viewmodel that I use to upload data from a natural or legal person. It contains some properties like Personal Properties, among others, that I use to load my dropdownlists from my view. The…
-
0
votes2
answers90
viewsQ: When field validation is triggered, dropdownlists do not load into Asp.net core MVC
When I start a registration screen, the system loads a ViewModel with the combobox loaded: If I, for example, click the record button, the fields in my viewmodel are validated, only the page does…
-
6
votes2
answers663
viewsQ: Where to create a Helpers layer?
I need to create a layer Helpers which will contain classes that will be made available for the entire project. These classes will contain functions such as calculations, wipers of string, anyway,…
-
2
votes2
answers3799
viewsQ: Load a Dropdownlist based on an Enum - Asp.net core
I have a Personal E-nature that relates to the Person table. I need to create a dropdownlist in my view that displays the list of Personsnaturezas (PESSOA FÍSICA E PESSOA JURÍDICA), including…
-
1
votes2
answers120
viewsQ: Lambda expression to return a Person in the repository - DDD and Aspnet.Core
I have a table Person who has one-to-one relationship with the tables PessoaFisica and PessoaJuridica. When I pass the id, it has to check me if nature is physical or legal and bring me the person +…
-
0
votes0
answers361
viewsQ: Problems with Javascript accentuation - Asp.net Core
Every text I write in Portuguese on buttons, etc, gets problems of accentuation in javascript. What I need to do? //Trecho do meu arquivo _Layout <!DOCTYPE html> <html class="no-js…
-
0
votes1
answer246
viewsQ: href with Submit on Asp.net core MVC
I have a _Loginpartial view in which you have a link to QUIT (Logout system). <li role="presentation"> <a href="javascript:void(0)" role="menuitem"> <i class="icon wb-power"…
-
2
votes2
answers402
viewsQ: Return data from a Linq query to an EF Core repository
I have the Person class that relates to the Personal and Personal Tables in a one-on-one relationship. In my table Person I have the field Personnature where 0 = Person and 1 = Legal Person. A…
-
0
votes2
answers157
viewsQ: Create a Join between two classes in my repository
I have a repository for my class PessoaCadastro that relates to the class Pessoa. I need to create a method GetJoinAll(...) show me all the table records PessoaCadastro that are related to Pessoa…
-
1
votes1
answer355
viewsQ: How to enable Migrations to Identity in Asp.net MVC
I need to decouple Identity from my Asp.net core MVC layer and play it for another crosscutting layer of my DDD project. Based on Eduardo Pires' Equinox project, I was able to do it, but I’m finding…
-
2
votes1
answer181
viewsQ: How do I increase the selection range of a list item within a drop-down menu
How do I increase the selection range (gray color) to be wide and high as selected in red? body { padding-top: 50px; padding-bottom: 20px; } /* Wrapping element */ /* Set some basic padding to keep…
-
0
votes0
answers54
viewsQ: Problems running Javascript Asp.net core
I copied some folders containing css scripts and javascript for wwwroot these files are being referenced in my Shared/_layout. A message appears in the upper corner of my Visual studio 2017 window:…
-
0
votes1
answer678
viewsQ: Problems referencing Javascript and css files - Asp.net Core
I’m trying to adapt a layout model that I found on the net, in my Asp.net core, but I’m not being able to make it work.... I created a Content folder at the root of the project and within it I have…
-
1
votes1
answer135
viewsQ: Map classes that inherit Id from another Entity - EF Core class
I need to map the Person and Branch classes with a one-to-one relationship, where a person will be just a branch and a branch will be tied to only one person, (A PK in Person Id and PK/FK in…
-
-1
votes2
answers596
viewsQ: I cannot initialize Automapper Settings 6.2.2 Asp.netcore 2.0
In my Application layer, I have the following classes: public class AutoMapperConfig { public static MapperConfiguration RegisterMappings() { return new MapperConfiguration(cfg => {…
-
1
votes1
answer260
viewsQ: Migrations error loading System.Configuration.Configurationmanager - Migrations
I have a WPF project that contains a app.config containing the consection string and tb have a Data layer of type Classlibrary . dot net Standard in which the Migrations folder should be created.…
-
0
votes0
answers56
viewsQ: Restore from Postgree Backup
When I restore a backup in Postgree’s "pgadmin", if the database tables contain records, it gives error. Is there any possibility of me creating a backup and at the time of restoration, I inform…
postgresqlasked Master JR 1,853 -
4
votes1
answer84
viewsQ: How to control migrations in two distinct contexts?
I have two contexts and I would like to know how to activate each of them. For example Add-Migration Contexto 1, Add-Migration 2 How can I add new ones Migrations for each context?…
-
1
votes1
answer784
viewsQ: Problems referencing a classlibrary from . net framework core - C#
I need to reference a class library . NET Core in my WPF layer which is a . NET Framework layer. However, a compilation error is made saying that it is not possible to refer to it. The error message…
-
0
votes1
answer59
viewsQ: Problems Inserting Image on a Button
I’m having trouble inserting an image of the "Packiconfontawesome" package into a button. I installed the Icons package of Mahapps and referenced in my view, only an error appears as the image…
-
1
votes1
answer74
viewsQ: How to change the color of the icon inside a Rectangle - WPF
I need to change the color of my button icon to "White Color", but I don’t know how to do it. I’m using a Mahapss icon pack... I’ve seen it on the net using GRID’s Contentcontrol, but being inside a…
-
5
votes1
answer772
viewsQ: Enum as Object Value in DDD
After many searches on the internet, I came across many divergent opinions... In my application, I created the enum EstadoCivil {Casado = 1, Solteiro = 2, Divorciado = 3}. It can be classified as an…
-
0
votes1
answer13
viewsQ: error loading Progressring (Mahapps)
I have a Progressring on a Page in WPF that needs to be displayed while the Grid is being loaded (Goal: Show the user that you are loading) and then be disabled when loading it has been completed.…
-
1
votes1
answer549
viewsQ: Circular relationship with Entityframework Core
I need to relate the entity Person to Personal Registration using EF Core, but is giving the following error in Migrations: "The navigation Property 'Personal' cannot be Added to the Entity type…
-
3
votes1
answer400
viewsQ: Error accessing Automapper Createmap property 6.2.2
I’m practicing on a simple example I found on net on the subject. Only that I believe it is in an older version of AutoMapper and so I can’t access the property CreateMap when I call the class…
-
1
votes1
answer52
viewsQ: Doubt on how to Map an Interface with a Class - Simpleinjector
I’m having trouble mapping the Interface IClienteRepository with class ClienteRepository. When compiling the application, this error appears: "Exception {"To be Able to use the Lifestyle.Scoped…