Posts by Thiago Rodolfo • 129 points
10 posts
-
1
votes0
answers51
viewsQ: Entity mapping with . Net Core 2
have the following entities: public class Transacao : IEntity { [Key] public int Id { get; private set; } public int LojaId { get; set; } public virtual Loja Loja { get; set; } public int…
-
1
votes1
answer1131
viewsQ: Use Ilogger with . Net Core 2
I am studying . Net Core 2 and I have a question. I am wanting to log error in my Repository layer and only saw example in Controller. Some specific reason for this? Follows my codes:…
-
1
votes1
answer721
viewsQ: Connect to database using . Net Core 2
I am studying . Net Core 2 and I am unable to make the connection to the database. My appsettings.json looks like this: "ConnectionStrings": { "DefaultConnection":…
-
1
votes2
answers213
viewsA: Insert multiple lines into Informix
I was able to solve it this way: INSERT INTO tb_tabela (coluna1, coluna2, coluna3) SELECT * FROM ( SELECT valor1, valor2, valor3 FROM SYSMASTER:SYSDUAL UNION ALL SELECT valorn, valorm, valorx FROM…
-
2
votes2
answers213
viewsQ: Insert multiple lines into Informix
I use a Informix bank and I have to do 3500 Inserts. Informix runs line by line and this is impractical. How do I insert all lines at once? Example: insert into tabela (coluna1, coluna2, coluna3)…
-
2
votes1
answer1098
viewsQ: How to configure Web Api route to accept named parameter(query string)?
I have a web api with the following method: [HttpGet] [Route("api/documento/doc/list?{cpf}")] public string Listar(string cpf) { return "value"; } I need the above method to be called through the…
-
0
votes0
answers695
viewsQ: Click the menu does not work on mobile
I made a responsive menu that in the browser works, but on smartphone I cannot click on the child link. Example user menu --> create. When I click user it opens the options (list, create and…
-
0
votes3
answers1955
viewsA: Ajax works locally, but does not work on the server
I got it solved!! The problem is that the System.Web.Helpers.WebGrid was killing the ajax, so got lost in the way. I changed the ajax url to: '@Url.Action("NomeDaAction","NomeDoController")' and…
-
2
votes3
answers1955
viewsQ: Ajax works locally, but does not work on the server
I have an application on Asp.net mvc 5 where the code below works locally (visual studio 2012), but does not work after the publication on the server. controllerAction = "/Controller/Action/"…
-
2
votes1
answer44
viewsQ: Save Ienumerable<T> inside a parent entity with LINQ
I have the following classes: public class Foto { [Key] public int Id { get; set; } [StringLength(500)] [Required(ErrorMessage = "Obrigatório")] public string Nome { get; set; } public int Item_Id {…