All Questions

1
answer

Transform Query into Linq

I need to transform this query into Linq: select B.Nome from Gestor A inner join Entidade B on A.UniaoEntidadeId = b.EntidadeId group by B.Nome HAVING COUNT(A.EscolaId) > 0     
asked on 13.08.2015 / 20:21
3
answers

How to read a Json file

$(document).ready(function(){ var json = [{ bloco:"bloco1", titulo: "titulo1", perguntas: [{ pergunta1: "Resposta1", opcaoSelecionada: "2" }]; }/*,{ bloco:"bloco2", titulo: "titulo2", perguntas:...
asked on 26.07.2015 / 19:41
2
answers

Get null bank fields with LINQ

I have a Gestor table in the database where I store information for a user with Manager profile. In this table, I have two FK's : uniaoId and schoolId . Well, this manager MUST belong to a union and may or may not belong to a sch...
asked on 14.08.2015 / 14:27
1
answer

Table Relationship - EF

Good afternoon! I have the tables "Order of Service" and "Attachment". In my "Service Order" table, I want to be able to attach the scanned service order and be able to attach photos of the equipment. Order of service [Table("OrdemDeServ...
asked on 31.07.2015 / 20:27
3
answers

How to create a mini database written in php using a json-formatted text file

I was needing a personal mini database written in PHP to store some internal data from my site, where I would create new properties, change them and delete later if necessary. The example below shows how this .txt file would look and how to f...
asked on 13.08.2015 / 22:49
1
answer

Node.js Sequelize Error Relationships

Good afternoon guys, I'm new to Node.js and I'm having a problem. In this relationship, a Questionnaire can have MANY Questions, when I execute it in return I do not get the ID of Questionário in the Questão table, however the tw...
asked on 17.07.2015 / 17:14
1
answer

Editing the Package Name in Intel XDK

I created an application in Intel XDK and at the time of publishing in google play, it gives the following error:    Use a different package name. "xdk.intel.blank.ad.template" already exists on Google Play How do I change the name of the...
asked on 03.11.2015 / 15:42
1
answer

Command to share the same folder with multiple names

I am currently working on an improvement in the deployment process and I would like to automate one of the new steps. Through Windows UI I can share the same folder on the network under several different names. At the command prompt there...
asked on 28.07.2015 / 20:43
2
answers

How to count number of records in a table?

I have a table called noticias , where every news item has id . I also have a table named comentarios , where there is id of the news that the user commented on. How can I tell the comments for that news?     
asked on 25.07.2015 / 23:08
1
answer

What exactly is the "u" modifier for?

What exactly does the u modifier in regular expressions from preg_ to PHP ? Should I use it whenever I process strings that have accented characters? $valor = 'ãẽi ouã'; preg_match('/\w+/u', $valor, $matches); $matches;...
asked on 23.07.2015 / 20:47