Questions tagged as '.net'

1
answer

Web Extension in Visual Studio 2012

I installed Visual Studio 2012 Express on my machine and did not add the extensions needed to work on the Web. In Visual Studio there is the option to add extensions and updates. There I found several, but I do not know what options I install...
asked by 29.06.2018 / 23:40
1
answer

How to fire multiple errors in a single data check using C #

I am creating a solution where I would like to keep all business rules within my models including the error response. The problem is that I would also like to be able to capture multiple errors at once like this: public class Usuario { pri...
asked by 27.09.2018 / 15:59
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 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

Example of run-time object in C #

Reading an article appeared the following term runtime object or "runtime object". What would that object be? Would it be an instance of a class? Can anyone pass some example? Part of the article:    The OO design process centers on use...
asked by 29.04.2018 / 05:22
1
answer

NullReferenceException in Winforms code

Ithinkit'sabugnotinthecode,butinthecompiler...WhenIeatthiscodearea,theerroralwaysgoestothenextvariable,ormethod.See: Partofthecode:grpBoxMDeck[i]=newSystem.Windows.Forms.GroupBox(){Location=newSystem.Drawing.Point(76,yG),Size=newSystem.Drawing....
asked by 29.04.2018 / 22:35
1
answer

What are the differences between ASP.Net MVC and ASP.Net Razor Pages?

What are the differences and limitations between ASP.Net MVC and ASP.Net Razor Pages? I was curious, as apparently the Razor Pages use the MVC standard, but without the need to use a controller , I do not even know if this is really it, and...
asked by 12.02.2018 / 21:27
1
answer

Registering the value of a variable in a table

I'm trying to save data from 2 variables in a table, but when I look at the table in the database the values are recorded as 0. public void inserir(List<Conta>list) { List<Conta> lista = new List<Conta>();...
asked by 24.02.2018 / 21:26
2
answers

What is READ_COMMITTED_SNAPSHOT?

What is READ_COMMITTED_SNAPSHOT transaction support for EF6 About Anyway? What is your use within the Entity Framework?     
asked by 04.11.2016 / 13:16
1
answer

Console write 2 strings from the list

I created a list in which I added 2 strings: var lista = new List<string> {cliente.Nome, cliente.Sobrenome}; And in the end I wanted it to show like this: Console.WriteLine(lista[0]); But show only the name, why?     
asked by 06.11.2017 / 16:33