Questions tagged as '.net'

1
answer

How do I put a Password field in a MessageBox?

How to insert a field so that I can put a password in a MessageBox . I could call a form , but wanted something simpler and faster, I would like that when I clicked on a button it would provide a field to put a password that will be se...
asked by 30.12.2014 / 15:25
2
answers

How to delimit a string fields in C #

I have a string field for example address in code. This address field receives a 60 character die. What I want is to delimit the address size so that it only receives 30 characters and not above that, even if it truncates the information....
asked by 24.02.2016 / 14:23
1
answer

Inheritance with interface [closed]

How can I solve the following problem. Scenario: I have a class B that inherits from class A and implements interface I. Problem: The interface I forces the implementation of method X which in turn is implemented in class A, not in B....
asked by 12.06.2014 / 15:51
3
answers

How to do an "insert" with Dapper using a class?

I'm testing Dapper and when I try to use a class I found the error:   Must declare the scalar variable Follow the code: public class Teste { public int id; public string nome; public int idade; } using (IDbConnectio...
asked by 02.10.2017 / 18:20
2
answers

What is the best place to store the connection string? [closed]

There are a few possible places to store the string connection. Leave tied inside code, app.config , configuration file and Windows registry. What is the best place to store the string connection? Based on the requirements, security...
asked by 02.06.2016 / 15:41
1
answer

What are the pros and cons of the TaskListObject implementation on ListObject

What are the advantages between the two implementations below. Both return a list with several products (more than 1k): public Task<List<Product>> GetAllProductsAsync() { var query = Products.ToList(); return Task.FromResu...
asked by 01.08.2015 / 16:26
2
answers

How to save changeable parameters in the system?

I have an ASP.NET MVC project and I use web.config to save some parameters that will be used by the system, but should not be changed by any users. Now I have to implement some other parameters that can be changed by users, without ha...
asked by 09.11.2017 / 20:37
2
answers

What does a "Thread Safety" class mean?

According to MSDN a WebApp Class (Microsoft.Owin.Hosting) is Thread Safety . What does this mean exactly? This class specifically has a method Start that:    Start a web app .... Would every request to this app...
asked by 26.07.2015 / 22:18
2
answers

Is there a late reading class in the .Net framework?

I would like to know if there is any class in .Net that allows me to tell it how to read a data, but that DO NOT read immediately ... only later when requested, this class it reads and stores the value, in case several readings are taken. S...
asked by 31.01.2014 / 22:26
2
answers

How to register .net dll using Inno Setup

I have a DLL written in C # and I can not register it using Inno Setup. An example of how to run this process would be useful.     
asked by 10.02.2014 / 11:16