Questions tagged as '.net'

2
answers

What is the purpose of a static constructor?

I've always used constructors as follows: public MinhaClasse() { //Algo ... } However, I discovered that in C # it is possible to create a static constructor as follows: public class MinhaClasse { public string Propriedade { get;...
asked by 03.07.2016 / 23:39
0
answers

Database with Municipalities, City, Neighborhoods [closed]

Does anyone know where I can get a database with *States * Counties * City * Neighborhoods in Brazil ?     
asked by 18.02.2018 / 03:25
0
answers

System.speech in Portuguese-Brazil [duplicate]

I wonder if using the System.speech I can use it in Portuguese - Brazilian. My operating system is in the English language. I've already downloaded all the necessary packages, and if I put it in English (en-US), my program works perfectly...
asked by 22.02.2018 / 23:03
1
answer

Kendo ui NumericTextBoxFor - Set startup values

How can I set a default boot value for the Kendo NumericTextBoxFor field. Ex: My field is initialized in white. I want it to come with a default defined by me: @(Html.Kendo().NumericTextBoxFor(model => model.MinVoltage).Name("MinVoltag...
asked by 10.07.2017 / 20:09
5
answers

Schedule execution process in C #

I have an application that will be running 24h / day the 7days / week, that is, it will always be running. I need at a specific time, every day a method of this application is called.     
asked by 17.08.2015 / 15:40
1
answer

How to add a linked column in GridView?

I have the following code that generates my GridView: protected void Page_Load(object sender, EventArgs e) { try { AlteracoesContrato alteracoes = new AlteracoesContrato(movimentacaoId);...
asked by 31.03.2017 / 16:32
1
answer

Save dataset C #

I'm looking for multiple database tables for Dataset through Stored Procedure on MySQL using MySQL Workbrenck, but at the time of saving only the first table is saved, my code: Stored Procedure: CREATE DEFINER='root'@'l...
asked by 23.11.2016 / 01:06
0
answers

Error using dictionary in an IQueryable.Select () method to design chosen columns at runtime

The code fragment below is intended to use the Select () method to perform generic column projections on a query, according to a list of given column names. The program works fine if all the columns are of type 'string', but triggers the excepti...
asked by 16.06.2017 / 21:32
0
answers

API RESTFUL - What would be [duplicate]

What would a RESTFUL API be? What difference does it make to a Web Service (which has WebMethods with CRUD operations for example)? Thank you     
asked by 08.05.2017 / 00:16
1
answer

The entity type 'Personal' is part of a hierarchy, but does not have a discriminator value configured

I'm trying to generate migrations using the command: dotnet ef migrations add InitialMigration --context MyContext and the same is returning me the following message.    System.InvalidOperationException: The entity type 'PersonPass' i...
asked by 08.11.2016 / 18:01