I created a class in the Model named Payment.cs, where it has the exactly spelled attributes as the name of the fields of my pay table in the DB. I created a view for the payment information to be registered, but besides creating the view and li...
I have a job to do where I need to save data from a list to text files.
These data are for the most part, password , username , idade , nacionalidade and numeroCC . At work you are asked to encrypt username ;; pas...
I'm having a problem returning the DisplayName of an enum
I have the following Enum
public enum TipoPessoa
{
[Description("Pessoa Fisica")]
[Display(Name = "Pessoa Fisica")]
[JsonProperty("Pessoa Fisica")]...
Already notice that maybe my doubt is very primary, but come on ...
I'm doing a console-type project in C #, but I'm having trouble displaying error alerts. What I wanted to do was leave a separate part of the console for alerts, and when the...
I have an entity that has child entities, for example:
- Supplier (owns the main supplier data)
- SupplierEmails
- ProviderTelephones
- SupplierEnderts
- etc ...
Where each entity is a related database table.
In MVC I created a Model for e...
I'm trying to get the value of an input hidden inside the Controller by FormCollection, but the value is zeroed. To increase the value, I'm using a JavaScript function.
HTML:
<form id="adicionarTituloManual" action="~/Movimento/Adici...
Whenever I'm going to use a MySql database in a console application or windows forms, you need to have the dll MySql.Data.dll within the application folder.
With this, I wonder if you have any way to use MySql without a dll. I thought...
I'm developing an ASP.NET MVC project, with DDD structure and using Simple Injector.
I can perform persistence in BD normally, but at the moment of retrieving the information and displaying it in a list, it presents the following error message....
I can usually send an email. I just can not change DisplayName .
Follow the code below:
var body = "<p>Email From: {0} ({1})</p><p>Message:</p><p>{2}</p>";
var message = new MailMessage();
message.F...