Questions tagged as 'c#'

0
answers

Id jumping 1000 Sql server 2014 (localDB)

In my application a few times when I'm going to add some data to the database, the ID jumps to 1000 units. I found some solutions, but they do not work for me because I use EF6 with code-first and my intention is to install the application wi...
asked by 27.08.2018 / 16:35
0
answers

Error uploading with FireBaseStorage.net with Xamarin

I developed the following routine to upload images. var task = new FirebaseStorage("xxxxxx.appspot.com") .Child("data") .Child("random") .Child("file.png") .PutAsync(img); When I...
asked by 26.08.2018 / 21:40
0
answers

Reload the Page (windows) during Button Click, Spinner stops working in WPF C #

I'm doing a WPF application in C #, which when I click the browse button in the database. It starts spinning a "Spinner" that is inside the UserControl; private void BtnBusca_Click(object sender, RoutedEventArgs e) { MessageControl.Visib...
asked by 05.07.2018 / 21:12
0
answers

How to call a procedure that uses an out oracle type course with C #

I'm doing a test to find out how to call a procedure that has this type of course. IntheprocedureIhavethis:createorreplacePROCEDURE"PTESTE" ( pcd_servicoagendado integer, ptipo integer, -- 0 principal, 1 debitos p_cursor out pkgcursor.t_cur...
asked by 06.07.2018 / 17:08
2
answers

How to use values of each entry in Xamarin?

The code at the moment is like this, I'm doing the whole visual part in the same code behind, without implementing anything directly in XAML. I create the number of entries according to the value entered in an Entry called: sample. As I'm starti...
asked by 06.07.2018 / 19:04
1
answer

VBA migration to C # cycle for- V10 (ValidaLinha)

In event ValidaLinha in VBA would look something like this: Me.DocumentoVenda.Linhas(i).CamposUtil("CDU_LinVar1").Valor > 0 In C # I'm doing: this.DocumentoVenda.Linhas(i).CamposUtil["CDU_LinVar1"].Valor > 0 But somethin...
asked by 05.07.2018 / 10:06
1
answer

Consuming a WEB API in Visual Studio

I've created a WEB API in ASP.NET that is hosted on a web server. This WEB API accesses a table in SQL Server where I have a table called Products with Id, Name, Description and Price, I did the tests via POSTMAN and it is working correctly, but...
asked by 05.07.2018 / 13:35
1
answer

Issuance of NF-e 4.0: Goiás (C # / Net)

I'm updating the NF-e communication for some clients and in general I'm not having problems for licensors like Rio Grande do Sul and São Paulo, for example. But I can not make Goias work at all. Namely, I made a simple Console Application,...
asked by 25.07.2018 / 00:54
0
answers

Event Handlers Removal

In a Xamarin.Android plication application, is it important to remove the Event Handlers when exiting the screen to avoid memory consumption? Would it be a good practice? For example, in OnCreate() of one of the screens of my ap...
asked by 25.07.2018 / 14:00
2
answers

LINQ (LAMBDA) How do I add another list of objects and add them to my where? W#

Good afternoon, I'm doing an application in C # .Net Core, using lambda for database context handling. I have one question, which is as follows: I have a list of objects with these two attributes: Name and StartDate. Something like: List<Op...
asked by 02.07.2018 / 18:58