Posts by L. Albano • 411 points
6 posts
-
2
votes5
answers2617
viewsA: Select last dates of each SQL month
The SQL Server 2012 forward you can use the following: SELECT EOMONTH(Data) from Datas In other versions of SQL Server you can do something like this: select DATEADD(s,-1,DATEADD(mm,…
-
15
votes1
answer5651
viewsA: Infinite recursion (Stackoverflowerror): Error when listing products with categories and unit of measures
The problem is that you have a bi-directional relationship between Product and Category. When Jackson tries to serialize a product, he arrives in the category property, then tries to serialize…
-
1
votes1
answer155
viewsA: A timer for a service read a table in the comic book
Using a timer in a web API is not a good idea. I would create another project, like windows service, and then use a timer. Another option, and it depends on your database, would be to create a…
-
9
votes3
answers353
viewsA: Is it possible to prevent one of the attributes of an object from being serialized in Javascript?
I still can’t comment, so just adding the @Andersoncarloswoss response. A third option is the object itself decide which properties it wishes to serialize: var obj = { prop1: "String", prop2: 1,…
-
1
votes1
answer136
viewsA: Read radio and text inputs from the same form
You can compose the Jquery selector value $('input:checked, input[type=text]'). That in the case you specified it works, since both inputs respond their values to .val(). In case, a textarea would…
-
0
votes2
answers658
viewsA: Pass button value to modal
The @Isac comment is pertinent, because if you don’t need interaction you could just use {{item.id}} directly on label. But I will consider that you just simplified for the question. I think you…