Questions tagged as 'c#'

1
answer

Error synchronizing oracle database with entity framework

When updating the database model so that it takes changes to the schema of the database, it shows me this error:    An exception of type 'System.ArgumentException' was thrown when trying to update from the database. The exception message is:...
asked by 23.10.2018 / 09:02
0
answers

Problem when running a stored procedure does not execute the change in c # mysql, mysql and workbench

Codigo ConexionBd.ConnectionString = ConecionMySql.CadenaBaseDatos(); Comando = new MySqlCommand("DeleteUser", ConexionBd); Comando.CommandType = CommandType.StoredProcedure; Comando.Parameters.AddWithValue...
asked by 23.10.2018 / 02:42
0
answers

Obtain weekly working hours project manager type in .net (c # or vb.net)

The problem is the following: The total time of a task must be calculated; given a day with time (for the beginning) and a time allotted for the task.  Eg it starts on October 15, 2018 at 2:00 p.m., a task that will last 33.5hrs. It should be ca...
asked by 15.10.2018 / 23:37
2
answers

How to declare (map) a SQL_VARIANT in a Model - C # [UWP]

Good thing I have a table in SQL: CREATE TABLE Parametros( Empid int NOT NULL CONSTRAINT [FK_Parametros_Empid] REFERENCES Empresa(id), Codigo varchar(25) NOT NULL, Valor sql_variant NULL, CONSTRAINT [PK_Paramet...
asked by 17.10.2018 / 12:55
1
answer

Show by console an Array

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Ejercicio3 { class Program { enum direcion { arriba = 1, abajo = 3, derecha = 2, izqu...
asked by 16.10.2018 / 10:10
1
answer

Can several C # forms use the same serial port to send and receive data?

I am working on a project with Arduino and C # and I hope that my C # solution is composed of several forms and that they use the same serial port (since that has been my problem so far) and I was thinking that an easy way it would be a class bu...
asked by 16.10.2018 / 03:57
1
answer

why do not I get the ado.net entity Data model?

Hello, I wanted to know why the ado.net entity Data model does not appear to me since it does not appear in the list when I want to add     
asked by 16.10.2018 / 06:37
1
answer

Change characters within a string

I can invert two numbers of an array with the array.reverse but, in this case, I have declared a String that you enter by the input method and that this is transformed into an array with the Split method separated by ','...
asked by 16.10.2018 / 11:08
1
answer

Problems when exporting DataTable to Excel

using System; using System.Net; using System.Linq; using System.Data; using System.Net.Mail; using ClosedXML.Excel; using System.Collections.Generic; namespace Productos_Sin_Parametro_Ax { class Program { static void Main(string[]...
asked by 16.10.2018 / 14:39
1
answer

How to validate if a string string already exists in asp.net?

I would like to know how I can do to validate in asp.net if a text string entered is equal to another. I am doing it using the ValidationResult method but it does not work, I leave the code. public class ValidacionPlacaExistente {...
asked by 16.10.2018 / 05:24