Posts by Rafael Corrêa • 86 points
5 posts
-
1
votes4
answers5703
viewsA: Schedule process execution in C#
In a similar case I used Azure Webjob, where I needed to consume an API in a certain time interval. Reference: https://docs.microsoft.com/pt-br/azure/app-service/web-sites-create-web-jobs I…
-
0
votes1
answer245
viewsA: Error while generating file
Hello, I’m not sure if it suits your situation, but to download files I use the following action in the controller: public FileResult DownloadFile() { byte[] fileBytes =…
-
1
votes2
answers725
viewsA: Limit Editfor input in MVC
You can configure this in your Viewmodel using Data Annotation: [StringLength(2, ErrorMessage = "É necessário informar 2 caracteres para a Unidade Federativa.", MinimumLength = 2)] public string Uf…
-
4
votes3
answers504
viewsA: Map Many to Many in the Entity Framework
Hello, In your mapping class try specifying properties that will be Foreign Keys: These properties must maintain the type and nomenclature of the parent object. public class EmpresaProjeto { [Key]…
-
1
votes2
answers1454
viewsA: apply filter in return from a list
Hello, If you are using Dapper you can do it as follows; string sql = "SELECT * FROM Pessoa WHERE id = @id" var results = conn.Query(sql, new { id = SessionControl.PessoaFisica.ID }); If you are…