Posts by Keven Carneiro • 108 points
8 posts
-
2
votes1
answer215
viewsA: Checkbox checked/unchecked when receiving 0/-1 from server
In my view you are using the wrong event... using the ready Javascript will execute the function when the HTML is mounted on the screen. The problem is that at this time you still do not have the…
-
1
votes1
answer74
viewsA: Error while trying to update inside a foreach
Apparently there are two problems: The first is that as you get one IQueryable, you may be with a representation of your collection of items rather than the collection itself. This happens because…
-
3
votes3
answers228
viewsA: Delete automated files
You can make a PHP script that reads the creation date of a file to remove it using the function filectime: $dateFormat = "Y-m-d"; // Altere para "Y-m-d H:i:s" se quiser levar em consideração os…
-
2
votes1
answer30
viewsA: When defining which subpropriety in the EF mapping via Fluent API should be ignored, a Argumentexception is launched
Unable to ignore subproprides in Entity Framework. The correct way to ignore it would be in mapping the country entity. Following example: public class EnderecoMap :…
-
-1
votes1
answer188
viewsA: How to implement a text file export/import layer in DDD and how it will relate to the other layers
Doubt 1: It makes more sense for you to reference the Date project in your Exports project since you will need to access the database anyway and you will need all the data structures that are…
-
1
votes1
answer46
viewsA: What do you call the cast() function of the database in the ORDER method of a database in a LINQ expression in C# C#?
You can use the property Datetime.Date. See the example below: using System; public class Program { public static void Main() { var dateTime = DateTime.Now; Console.WriteLine("Isto irá imprimir a…
-
-1
votes1
answer43
viewsA: INSERTION COMMAND TOGETHER WITH THE PHP TEMPLATE
Yes, it is possible. For this you need to use the method isset. if (isset($_POST['cadastro'])) { // Aqui vai o código do cadastrar.php } For this code to work, you need to add a property in your…
-
-1
votes1
answer133
viewsA: Turn an SQL command into Lambda or Java 8 Stream
Editing: You need to use the Java Stream library. By the result of your query you return Matching with higher M1. The command filter(x -> x.getM1() != 0) is the equivalent of where SQL. To use…