Questions tagged as 'c#'

0
answers

Problem with a DLL

I am learning asp.net mvc and a problem has arisen when editing, creating or deleting a data from the database. It shows me the following error but I do not know how to correct it.     
asked by 15.10.2018 / 07:04
0
answers

SQL connection to database with c # (question about hosts)

I was interested in connecting an application in c # .net to a mysql database, I am using the referecias offered by the official mysql page, in this case the following one. using MySql.Data.MySqlClient; I have tried different hosts to host...
asked by 13.10.2018 / 03:35
0
answers

in the value assignment gives me null but in the id I have 1

We are doing a system of a bar in the faculty, all right up here, but when I want to go to modify or eliminate an employee I get an error, in the photos this link link link attached photos of the code WHERE THE ERROR IS JUMPING...
asked by 15.10.2018 / 04:29
1
answer

Serialize image in c #

My problem is that when I click on the open button I want it to open automatically, it can be seen, and serialized with the * .poo path in the same location where I opened the image, all this only with the button open, since I want to delete the...
asked by 08.10.2018 / 19:15
0
answers

Creation of message request In ChannelFactory

I am performing a method using channelFactory for Invoice Shipping -E Dian Via Channel Factory First question: have you done this? If possible, do something similar to this: void SendFacturaFactory() { BasicHttpBinding binding = new...
asked by 30.10.2018 / 14:48
0
answers

Convert query select CROSS APPLY to LINQ

I have a selection query SELECT that implements CROSS APPLY and I need to pass it to LINQ Transact SQL Server SELECT distinct(PC.ProductoCatalogoId), P.Nombre + ' ' + PL.Product + ' ' + E.Nombre + ' ' + O.NombreOpcion AS Des...
asked by 09.10.2018 / 04:15
0
answers

How to know the type of field in the database with EntityFramewors C # [UWP]

I just have a table: 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_Parametros] PRIMARY...
asked by 17.10.2018 / 18:54
0
answers

How do I apply polymorphism to a data set [closed]

with the following doubt, I want to apply polymorphism to the following data: Seller: cell phone, customer list, car Secretary: increase, fax, cell phone Boss: List of sellers, increase, cart code: public abstract class Empleado {...
asked by 20.10.2018 / 05:28
1
answer

How to convert and send joined or hexdecimal commands in C #

I have a dot matrix printer to print and I need to send a cut command to the printer from a form (Windows Forms): Through an interface I select the name of the printer. I have a textbox which I input command in decimal to cut paper. For ex...
asked by 19.10.2018 / 22:37
2
answers

How to change the class of depending on its value in C # MVC

I have this form that gives me two data "active and deactivated, how to make them change depending on, with the class class"label label-success y label-danger' <tbody> @foreach (var item in Model) { <tr>...
asked by 27.09.2018 / 18:28