All Questions

1
answer

How to get the last record entered in SQL according to your date

I need to get a record of a table, where this record is what the date was entered last. Of the genre: SELECT Ped.Quantidade FROM ped WHERE data <= @data But as I have several records it returns me all, when I just want the last one in...
asked on 16.04.2014 / 13:44
2
answers

Replace in SQL - Character to keep a piece of text

I need to modify a part in the text of a table. The records for an email are [email protected] and need to change all to jf.jus.br . Only the first part of the email does not change (the xxx). I can do one update TABELA set email = RE...
asked on 19.08.2014 / 17:08
2
answers

How to get multiple groups in a Regex?

public string site = "http://www.tibia.com/community/?subtopic=worlds&world=Aurera"; private Regex nomedochar = new Regex("subtopic=characters&name=(?<player>.*?)\" >"); public string nomedochar2 = ""; public Thre...
asked on 20.04.2014 / 07:33
2
answers

Many Relationship To Many Entity Framework 6

Good morning, I have the following classes: CONSUL_CA_Aluno: public class CONSUL_CA_Aluno { public int Id { get; set; } public string Nome { get; set; } public int Cpf { get; set; } public string Email { get; set; } pu...
asked on 05.05.2014 / 21:01
2
answers

Suggestion Migration System and modeling of individuals and legal entities in a system with Entity Framework

Well, the question is this. I have a database that has the purpose of making the cash book of a company, basically this bank has a CaixaCorrido table with columns Id , PessoaNome , DataHora , Descricao , Valor...
asked on 09.03.2016 / 15:23
2
answers

How to solve duplicate PHP object?

I have 2 objects with different values, but when I save it it saves as a single object. Example of how I'm using: class Objeto { private $Nome; public function setNome($Nome){ $this->Nome = $Nome; } public funct...
asked on 09.09.2015 / 16:41
1
answer

Is the C # language recommended to be distributed online with a database?

It is very easy to get the entire code from a C # program using .NET Reflector. Would it be possible for me to put the same security in a C # program as a program made in C ++? I found this answer in Stack Overflow in English but even in...
asked on 01.02.2016 / 17:33
2
answers

What does the application gain using Type Hint?

In PHP 5 we know that type hinting has been added. and now we can declare and force the type of parameter that a function will receive. I believe that it will help in the treatment of the data of more precise form, however what is the gain o...
asked on 25.08.2015 / 16:10
3
answers

Measure the execution time of a function

How can I measure the runtime of a function in Python? In C #, I use the class Stopwatch() in this way var sw = new Stopwatch(); sw.Start(); AlgumaFuncao(); sw.Stop(); WriteLine(sw.ElapsedTicks);     
asked on 10.11.2015 / 14:41
2
answers

What is the difference between Sessions and Cookies

What's the difference between Sessions and Cookies ? In what circumstances should I use?     
asked on 25.02.2016 / 15:48