Questions tagged as '.net'

1
answer

Store vector in SQLite

I'm creating an application in C# that must have a database. At first I'm thinking of using SQlite for simplicity. But for each data inserted in my bank must have: Identifier ( int , char , bool ) ... Vector (which...
asked by 17.03.2016 / 21:02
1
answer

Send e-mail without appearing in the sent box

I do not want these sent items to appear in the real estate email. string emailOrigem = imobiliaria.Email; string password = imobiliaria.Senha; string html = getBody(dados); //aqui serve pra formata o html...
asked by 27.09.2016 / 03:19
2
answers

Insert text into images

I have a Switch that according to the given status it throws an image, however I would like to also play the numbering of this status in the image (that text that usually when we click on the image it appears). I wonder if there is any property...
asked by 04.03.2016 / 19:58
2
answers

LINQ update of all listed items (changing the status of all listed items)

I have a Linq that displays data listed according to the required filters (date and unit) by the user and another filter to validate a code with another table (which are not the case). I would like to know how I can from a "reconcile" button, ch...
asked by 29.02.2016 / 21:31
2
answers

How to get the number of records in a DataReader?

I'm doing a query in a database, however I need to know how many records I'll get from this query, before I even start the loop.    Note: I do not want to put a counter inside the mesh, I need the value   before * cmd = New OleDbCommand(sq...
asked by 09.03.2016 / 15:43
1
answer

Add days to date increasing via For

In the code below I add 1 to each step in the variable i , to add 30 days in the dt field, do I need another for or what to do in it? DbConnection cnx = ADO_Utils.GetConnection(); DbCommand cmd = ADO_Utils.GetComando(cnx);...
asked by 23.04.2016 / 01:45
1
answer

Async method with Await on his return [duplicate]

public async Task<IHttpActionResult> NomeMetodo([FromUri] Filtro filtro) { return await Task.Factory.StartNew(() =>Ok(_aplicacao.RetornarDados(filtro))); } I would like to know why the above method makes sense, since it is as...
asked by 18.04.2016 / 15:42
1
answer

Insert current date into a field [closed]

I am using% co.de% of .Net to create a project as a learning base for BD with C #. I chose an easier way that would be to work most of the time in design mode through dataAdapters . The battle I face is to insert the current date into a DB...
asked by 13.12.2015 / 02:51
2
answers

Unknown command: 'syncdb' Visual Studio 2013

I'm having a hard time developing a system in Django. When I try to sync the database, this error appears: Python interactive window. Type $help for a list of commands. Executing manage.py syncdb Unknown command: 'syncdb' Type 'manage.py help'...
asked by 13.12.2015 / 20:28
1
answer

Is it possible to create individual events for the instances of a form in C #?

Let's say I have a customer registration form: var frmCadCli1 = new frmCadastroCliente(); And I just called this form: frmCadCli1.Show(); When I call this form, immediately before it is shown the Form_Load event...
asked by 09.12.2015 / 20:29