Questions tagged as 'c#'

2
answers

How to handle an empty Entry?

I have 4 text inputs and a button: <Entry x:Name="Densidade" Keyboard="Numeric"/> <Entry x:Name="Volume" Keyboard="Numeric"/> <Entry x:Name="Area" Keyboard="Numeric"/> <Entry x:Name="Cu...
asked by 04.07.2018 / 16:03
1
answer

How do I not map a Class with the Entity Framework

I'm doing my first system (C # ASP MVC 5) with the Entity Framework and Migrations. I have my classes that have been correctly mapped and migrated to the Database that is SQL Server 2012. But the question is how can I create a class that i...
asked by 18.06.2018 / 14:49
1
answer

How to insert double quote literal without the string "becoming \"?

I work with a search engine called Lucene.net that is nothing more than a search engine. I need to insert the following phrases within the indexer separated by ; :    "bedside lamp"; "lampshade"; "table lamp" It is necessary to...
asked by 20.06.2018 / 22:29
1
answer

Problem with arrays

Well I'm starting to study the C # language, I have a certain experience in Java, in Java we have a certain problem in array manipulation, because although there is no pointer in the language itself, when it comes to arrays this fear ends up, be...
asked by 16.06.2018 / 15:41
1
answer

Consume via JQuery-Ajax, an API at localhost: 28033, from a page at localhost: 7545

I'm trying to do something, but it's not working. I have two .Net Core 2.0 projects, an API, and an MVC. I want to run ajax calls from the MVC project, to the Project Controllers API. I open two visual studios, and I run two projects: R...
asked by 07.07.2018 / 03:46
1
answer

How do I expect a bool to be true?

I have this async method that currently expects a time declared by me. The program first restarts the boolean of result and then sends commands to a serial that after a certain time returns in my program the results in that same...
asked by 15.06.2018 / 19:25
1
answer

How to resolve reference error in Visual Studio Community 2017?

I want to resolve a reference error when I click on a word. I used visual studio 2013 and had "resove > reference" . But in the visual studio 2017 community how can I resolve all dependencies for references?     
asked by 08.09.2018 / 22:10
1
answer

How to make a direct comparison between strings handled with RegEx in C # directly

Hello, I come from the web (javascript) and I have the habit of working with OO mixing a bit of functional paradigm. Imagine the following situation. I have a cpf that I have to check if it exists in the database; I have no control over th...
asked by 23.07.2018 / 16:14
1
answer

How to receive a formData with file and form in the controller? W #

So I get the form: public JsonResult Import(**FormCollection** form) So I get the file: public JsonResult Import(**HttpPostedFileBase** file) $.ajax({ url: urlImport, method: 'post', data: new FormData($('#for...
asked by 22.08.2018 / 15:28
1
answer

Check if double variable is empty or numeric

How can I check if the variable a, b, or c has not been reported, and if they were not informed return all the code? How can I also check to see if the letter "x" has been entered for the A variable in the console and set it to double 1.0...
asked by 18.08.2018 / 04:04