Posts by Raul Medeiros • 152 points
13 posts
-
4
votes5
answers2296
viewsA: What good is a C#?
In the case of classes, the modifier sealed serves to indicate that it cannot be inherited. class A {} sealed class B : A {} That is, B may inherit from A, but if I create a C class and try to…
-
0
votes6
answers23686
viewsA: Difference between absolute and relative Urls in page contents
In case of a system for several domains Sometimes we work in applications multiclients. That is, an application for several clients, these can have their domains customized. So for this case, at the…
-
1
votes4
answers1437
viewsA: Get user logged in to Asp.Net Core 2.0
Through dependency injection, you can have access to your HttpContext in any part of the application that receives objects by injection. Simply inject the interface IHttpContextAccessor. public…
-
1
votes1
answer76
viewsA: Consultation of very slow cep
As long as you are using a public service, there is not much to do but acquire a private service or have your own zip code database. The Google site receives many requests, possibly they do not…
-
2
votes3
answers258
viewsQ: Is there a way to dynamically add attribute to instantiated object in C#?
Well, in C# we put attributes as follows: [Required("Este campo é obrigatório")] public string Nome {get; set;} What I would like to know is whether there is a way to add attributes dynamically to…
-
1
votes1
answer340
viewsA: How to get a list of JS objects in Controller C# MVC?
First you create a class with the same properties as the one you are passing in JSON. public class Obj { public int Quantidade { get; set; } public string Doc { get; set; } public string Serie {…
-
0
votes2
answers596
viewsA: I cannot initialize Automapper Settings 6.2.2 Asp.netcore 2.0
Since the course version of Eduardo Pires there have been changes in the Automapper, which make the configuration easier and readable. I will demonstrate. First create the mapping profile class,…
-
-1
votes2
answers224
viewsA: Is it possible to force a method to be called only by a specific one?
Perhaps the best solution is to separate by classes, where the Father method and the Son method are in the same class, but the child is private and can only be accessed from within the class itself.…
-
0
votes1
answer185
viewsA: Doubt Model Service DDD
It’s hard to answer without knowing the context, but I’ll try. If the two services depend on each other, I advise you to create a third service that injects the first two and bridge between them.…
-
0
votes2
answers476
viewsA: Save/Recover Files with PDF Extension
The best way to save files, is to save on hard drive. But depending on the database, you have the option to save as varbinary(max) (FILESTREAM or BLOB), not requiring conversion, being able to…
-
1
votes2
answers824
viewsA: What are the variations of ASP.NET?
To complement LINQ responses ASP.Net ASP.Net is a platform for creating web applications. It is like a junction of the old ASP Classic pages and the . Net Framework. In classic ASP we wrote server…
asp.netanswered Raul Medeiros 152 -
1
votes2
answers215
viewsQ: Is it possible to have Identityserver4 and Authorization authentication in the API separately?
I recently asked a question in stackoverflow in English, but I may have expressed myself badly and I did not get the answer I wanted. Link in English. I have 3 different applications: Identityserver…
-
1
votes1
answer44
viewsQ: Like the Entity Framework Trackeia objects?
I read several questions of the type, but I find my question very specific: How does the Entity framework "trackeia" the objects? That is, as when loading an object and even without sending the…