Posts by Joaquim Magalhães • 169 points
15 posts
-
-2
votes3
answers4139
viewsA: In practice, what is a system test and what should it cover?
In practice I see that the test should be done for any test that becomes expensive to be done manually. No test will be as up-to-date as a test made by a person and so I see that in practice, you…
-
1
votes1
answer43
viewsQ: Errors released on Android are not easily captured in Xamarinforms
I am developing in Xamarinforms a project where I use several APIS downloaded by Nuget, and have not had problems so far. Until then I decided to use the plugin Imagecircle and create a new View in…
-
1
votes0
answers448
viewsQ: Problems printing barcode on EPSON LX-300 II printer
I’m trying to print a barcode on the EPSON LX-300 II printer, but it’s not working. I’m using the following command: (Esc char)(B0500001800000000011151113939183000157550000000000091111023116 Which…
javaasked Joaquim Magalhães 169 -
2
votes2
answers215
viewsA: Ignore dot in a Query
Avoid injecting application complexity into sql querys. This makes maintenance difficult, because reusing SQL (strings) is practically 0. The ideal serial construction of a Cpf object: public class…
-
1
votes5
answers5072
viewsA: jQuery, duplicate click event
This probably occurs by a duplicate stream of your application. The easiest way to prevent the problem is to remove the event assignments, to ensure that it does not run more than once, using…
-
3
votes2
answers811
viewsA: Record and recover information in files
Test if file exists: if(File.Exists(@"C:\arquivo.txt")) // faça algo Write multiple lines to a file (overwrite content): System.IO.File.WriteAllText (@"c:\arquivo.txt", "Matricula"); Read content…
-
3
votes3
answers8129
viewsA: Loading in ajax
You can use this: $(document).on({ ajaxStart: function () { $("#ComponenteLoading").show(); }, ajaxStop: function() { $("#ComponenteLoading").hide(); } }); However, depending on the browser (Google…
-
0
votes2
answers427
viewsQ: Many-To-Many Entityframework update does not work
I have a relationship N:N between Activity and Project, where an activity has many projects: public class Atividade : ObjetoPersistente { public Atividade() { StatusAtividade =…
entity-frameworkasked Joaquim Magalhães 169 -
1
votes1
answer87
viewsQ: Is it really necessary to create a property that indicates the Foreign-key of a One-To-Many relation?
I would like to know if the information I found after searches, which briefly, is in the link below, proceeds:…
entity-frameworkasked Joaquim Magalhães 169 -
1
votes1
answer89
viewsQ: How to load only the ID attribute in Many-To-One Relationship in EF?
I have two relationships Many-To-One in this class (usuario and projeto): public Atividade() { Projeto = new Projeto(); StatusAtividade = EStatusAtividade.NaoIniciado; TipoAtividade =…
-
2
votes1
answer369
viewsQ: One-To-Many relation with explicit Foreign key name
I’m performing a simple mapping of one-to-Many via Fluent API specifying which column is used in the mapping, however EF "ignores" the configuration and continues using the name default. Mappings:…
-
3
votes4
answers14354
viewsA: Line break in bootstrap
Alisson, I recommend studying the vision structure (Grid system) you should follow when using bootstrap. http://getbootstrap.com/css/#grid By declaring your HTML following this structure, your…
-
1
votes6
answers3314
viewsA: Get the local time in javascript with zeros?
Using this plugin is very simple: /*! jquery-dateFormat 05-10-2014 */ var DateFormat={};!function(a){var…
-
2
votes1
answer677
viewsQ: How to do the mapping (Entitytypeconfiguration) of this complex type?
My application Numerators follow the 'secure enumerator' design pattern, where I have the enumerator statement as static members, and the Numerators instance following a contract (Ienumeradorseguro…
-
4
votes1
answer277
viewsQ: Change property structure at time of JSON serialization
I have a situation where my HTML form represents a different data structure than the existing structure on the server. To illustrate my problem, I will present a hypothetical situation, to present…
asp.net-mvcasked Joaquim Magalhães 169