Questions tagged as 'c#'

1
answer

Error inserting data from an excel file into sql

I have a problem when I insert data from the excel file into the database because in a field I am inserting it says that it is not of type time and does not let insert, but in the Excel file the text is written is only hours or is time...
asked by 02.11.2017 / 17:35
1
answer

Bring a newly added ID to put in a textbox c # windows form

I ask for help to do the following, I make an insert via procedure after saving I want to fill the textbox with the id created so I can use it to associate with my item Ijustneedtheordercodetoenterthetextbox.Thanksinadvanceforyourhelp.NewButton...
asked by 04.11.2017 / 19:39
1
answer

Linq command to bring a decimal query C #

I'm having trouble understanding how to bring a query from the textbox of a column where the field is decimal? if (txtNomePesquisar.Text.Equals("")) { MessageBox.Show("O que você procura? "); } else { var clientes = cc...
asked by 26.10.2017 / 00:59
3
answers

Doubt of how to increase input size according to div size using bootstrap

I'm having difficulty increasing the size of my inputs using the bootstrap classes, I'd like to leave them depending on the sizes of my div for example, in a row with 12 columns I create the div with col-md-12 and leave the input of the size of...
asked by 24.10.2017 / 19:13
0
answers

EF Core Field Description

Good Morning Assuming I have a 'Description' field in the database, how do I via Fluent API to return "Description" (to be able to appear spelled correctly on the screen)     
asked by 26.05.2018 / 07:10
1
answer

Error C # and MySql: Authentication with old password no longer supported, use 4.1 style passwords

Context: We have an application built a few years ago in ASP 6 that accesses a MySql database, there in LocalWeb. To make the connection, the application uses the MySQL ODBC 5.1 driver. and works perfectly. Objective:  We are building a ne...
asked by 14.11.2017 / 14:45
1
answer

Log4net has stopped showing the logs

My console has stopped displaying the nothing logs, I've compiled it several times and it never happened to me, just now Code: public static readonly ILog log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); log.Inf...
asked by 13.11.2017 / 19:03
0
answers

C # All of my comboBox are changing text

I'm having a problem with my program in that when I change the values of one of my comboBox , example: private void Ex1Mat_SelectedIndexChanged(object sender, EventArgs e) { if (start == false) { SqlDataAdapter Ex1UpdateAss =...
asked by 28.10.2017 / 23:11
1
answer

I need to create a Compound dataset using HDF in C #

My application contains a list of BasicVariables and within each of the BV's, I have a list of objects of class OPC_UA, which have 3 attributes, a datetime (which I will convert to a timestamp), a float and an int64, I need write this list of OP...
asked by 11.06.2018 / 18:41
0
answers

Error making MySQL connection using .NET. How to solve?

Exception when connecting to bank:   IsPasswordExpired: 'conn.IsPasswordExpired' threw an exception of type 'System.NullReferenceException'       ServerThread: 'conn.ServerThread' threw an exception of type 'System.NullReferenceException'  ...
asked by 16.11.2017 / 15:04