All Questions

4
answers

Good practices in using DB connections via Entity Framework

When defining the context class in the Entity Framework (example): public class Context : DbContext { public DbSet<Usuario> Usuarios { get; set; } public DbSet<Categoria> Categorias { get; set; } } And used in DAO classe...
asked on 25.02.2014 / 17:12
2
answers

What is the difference between Logical Implication and Logical Equivalence?

I am studying mathematical logic and programming logic, and would like to know the difference between Logical Implication and Logical Equivalence?     
asked on 26.06.2016 / 16:55
3
answers

JS - Array of objects for array array

How do I convert an array of objects to an array of arrays in javascript? I did this, but it returns an array of objects var items1 = new Array(); $.map(objResposta, function(value,index) { teste = new Array(); items1.push(val...
asked on 19.12.2016 / 13:45
2
answers

How do I convert LINQ to SQL for MySQL?

I'm trying to remove the use of SQL statements from within the system (to make it flexible on the database that will be used), I use statements Insert , Update and Delete via stored procedure (for performance and for flexibi...
asked on 28.01.2015 / 14:57
5
answers

Schedule execution process in C #

I have an application that will be running 24h / day the 7days / week, that is, it will always be running. I need at a specific time, every day a method of this application is called.     
asked on 17.08.2015 / 15:40
2
answers

How to populate a DropDownList from another DropDownList

I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
asked on 23.07.2015 / 13:54
2
answers

Does using "document.open" and "document.close" make any difference?

I saw in a given response from SOEN a question about how to print iframe content. I ended up with a snippet of code where I had the following: var newWin = window.frames["printf"]; newWin.document.write('<body onload="window.print()"&g...
asked on 14.02.2017 / 13:52
1
answer

Type Double and type Decimal

I found in the SO a question with an answer well accepted by the community # But I never had problems with double for monetary calculations, I had yes with float that already left my hair standing, then from this answer stating...
asked on 17.04.2015 / 20:14
3
answers

How do I count the number of products by category?

Ihavethetabletbl_produtosproduct_idproduct_namecat_productIhavethetabletbl_categoriascategory_idcategory_nameHowwouldIcountthenumberofproductsforagivencategory,forexampleCartazes,whichis000001SQL?  Update     
asked on 25.11.2014 / 18:20
4
answers

Why does my CNPJ validation pass this invalid value?

I have a problem in a JS validation, in case it does not pass any invalid CNPJ value, but when typed only 000.000.000 / 0000.00 it lets it pass normally. function ValidaCNPJ(cnpj) { var i = 0; var l = 0; var strNum = ""; var strMul =...
asked on 15.01.2015 / 17:34