Questions tagged as 'c#'

1
answer

How to represent the real type in C #?

I have an existing table in a database of my client and there has an attribute with data type REAL . How do I represent in C #? float or decimal ? What is the best way?     
asked by 20.08.2017 / 21:00
1
answer

Doubt Tag Form

I have two form tags on a page to validate some fields that appear in modal, the first form , is just to search in grid . The% open% modal, and the remove filter function work perfectly. However, when opening the modal, the b...
asked by 25.04.2018 / 21:46
2
answers

Method To Receive Generic Values

Greetings. I have a method that gets 3 paraments: collection, business, quantity Collection: is a collection class that inherits from another class, eg, man, woman, senior ... Business: is a class that contains the methods that han...
asked by 09.05.2018 / 22:01
2
answers

Help with LINQ, query in .Net

Good morning, guys, I'm in need of help with LINQ. I'm trying to perform the following query through linq: SELECT NFE_SAIDA.NFESAI_SEQUENCIA FROM CAD_NFE_SAIDA NFE_SAIDA LEFT JOIN CAD_NFE_SAIDA_ESTACOES NFE_SAIDA_ESTACOES ON NFE_SA...
asked by 29.12.2017 / 11:37
1
answer

C # Decimal field accept value equal to or greater than 0 in validation

I'm having problems validating my fields of type decimal using Razor, when I try to enter 0 in the field it gives the following error message.    The field XXXX must be a number. Below is my class and how I enter the field with Raz...
asked by 15.12.2017 / 14:31
1
answer

Communication with Siemens CLP [closed]

Soon I will be developing an interface with Siemens CLP, model ET-200A. This is a new subject for me and I have some doubts. Has anyone ever dealt with this type of communication? Is the communication the same for any type of Siemens PLC?...
asked by 08.06.2017 / 19:22
1
answer

Object reference is required for the non-static field, method, or "notificationhub" property

Follow the code below: void OnChange(object sender, SqlNotificationEventArgs e) { //from here we will send notification message to client NotificationHub.SendNotification("João"); // <----- Aqui .... } Hub: public void S...
asked by 02.06.2017 / 00:35
1
answer

Equivalence of RMI (Java) in C #

What is the equivalence of RMI (Remote Method Invocation - Java) in C #?     
asked by 27.06.2017 / 20:11
1
answer

C # help error with sqlite

Where is the error? does not update at all SQLiteConnection conn = new SQLiteConnection(conexao); if (conn.State == ConnectionState.Closed) conn.Open(); SQLiteCommand cmd = new SQLiteCommand("UPDATE PESSOAS SET NOME,ADDRESS = @NOME,@ADDR...
asked by 07.08.2017 / 18:08
1
answer

Error returns when trying to start some threads in a list

I need to create a function for my program, that when the user is pressing NUMPAD_8 , it turns off all thread , and if he presses again, it turns them back on. As I'm creating the thread list: public static List<Thread> th...
asked by 04.08.2017 / 15:34