Questions tagged as 'c#'

0
answers

Mapping one to zero with entity framework

Good afternoon, I have a document table that has relationship 1 to 0 with another table of Usuario to return the user name, but I get the error:    Conversion specified is not valid. My mapping: public class DocumentoOffConfigura...
asked by 03.09.2018 / 22:57
2
answers

Increment variable while holding a button

I need to do an action inside a Button, when the person presses and holds with the left side of the Button in the Button, increment a variable until you release. He released, for action. Within the method of this Button, I want to increment t...
asked by 21.06.2018 / 20:47
0
answers

How to ensure the security of a password when extracting a SecureString in C # WPF

I was reading about SecureString and what it can offer. However, I'm in a scenario where I have a PasswordBox and want to extract the password from that component, encode it in a hash, and then compare it with another encrypted password containe...
asked by 22.06.2018 / 19:59
1
answer

Modify visual element by another thread

I want to define a Thread in a RichTextBox but I get an error saying    Can not make calls from another thread than the same TextBox I've heard that it's possible to use the Control.Invoke option, so I was very much in doubt at th...
asked by 18.10.2015 / 00:46
1
answer

Malformed Reference Element XML NF Version 4.0

I am updating our program of sending service notes (Sorocaba). Doing a quick search saw some comments that after updating the .Net Framework, Microsoft made a fix on the Subscriptions vulnerabilities and some special characters could not be used...
asked by 03.07.2018 / 22:38
0
answers

Procedure does not execute

I have two calls from a procedure that simply does not execute. The code passes, procedure code in sql management studio works perfectly and within c # it does not return any error. It usually subscribes to the protocol Controller: pub...
asked by 21.06.2018 / 17:10
1
answer

Pick up json from the postman and play on an object

I have POST and I use Postman to test. Amount to url and body in Postman . Now when I test my object on my Controller it comes NULL , and of course it's because I did not do it correctly. What do I have to do? Controller [Route("api/[c...
asked by 20.06.2018 / 20:39
0
answers

Register User Email Identity

Hello, I did a Reserve CRUD, and the idea was that when the User logged in to make their Reservation their Email was registered along with the other registered data. The problem that in the place where it was to appear the Email of this User...
asked by 17.06.2018 / 06:44
1
answer

XAML Textbox Problem for XAML.cs

I have a XAML (Cadastro.xaml) where I made a TextBox and a PasswordBox and named them as txtCpf and txtSenha , until then without any problem. When I'm going to use them in Cadastro.xaml.cs , I can not and the...
asked by 26.06.2018 / 05:13
0
answers

How to cache a json xamarin iOS request

I would like to know how to cache a request HttpClient whose return is a json and determine the number of storage days for that cache. public async Task<List<Categoria>> GetCategorias(){ string URL = string.Format(Con...
asked by 26.06.2018 / 12:07