Questions tagged as 'c#'

0
answers

The specified named connection was not found in the configuration, is not intended for use with the EntityClient provider, or is not valid

   The named named connection was not found in the configuration, not   is intended for use with the EntityClient provider, or is not valid.   Description: An unhandled exception occurred during the execution of the   current Web request. Examin...
asked by 30.08.2018 / 21:42
0
answers

Entity insert without children are null - EF6

I have the following problem. I need to insert an entity that has populated children, but I can not be null in the children to insert only the parent entity because in the next lines of precise code of the children filled to insert them. I...
asked by 05.09.2018 / 19:57
1
answer

I need the name of the package to appear in the history table but the package_id is appearing

public List<HistoricoViagem> ObterTodosParaJSON(string start, string length) { List<HistoricoViagem> historicoViagens = new List<HistoricoViagem>(); SqlCommand command = new Conexao().ObterConexao();...
asked by 29.08.2018 / 01:13
2
answers

Pass two parameters at a time to the controller - A parameter is in an Input Group

Good morning everyone. I'm new to Asp.Net and I've got a personal project to do, but I'm having difficulty passing parameters to the controller. I do not know how to pass more than one parameter at a time. I have a modal to change the type of...
asked by 29.08.2018 / 13:28
1
answer

Search Object By date and Id Lambda, Linq, asp.net

I have class called VehicleSequence, a class called VehicleMovement and the Vehicle class. class RequisicaoDeVeiculo { public int Id { get; set; } public DateTime DataDaSolicitacao { get; set; } [ForeignKey...
asked by 28.08.2018 / 02:04
0
answers

Search first empty space in the database

I have a small application in C #, which creates the auto-supplier code. I would like to know if anyone knows any way the system can look for an empty code, eg:    1 - Manoel       2 - Narcissus       4 - Mustela The next code he...
asked by 03.09.2018 / 18:04
1
answer

How to generate multiple PDF dynamically through Itextsharp

I am creating a method in C # in which the user enters a listing of data and application mounts a pdf document for each given information. I'm using the iTextSharp library. In the first one it generates the PDF as expected, however when check...
asked by 03.09.2018 / 21:10
0
answers

Add chrome extension in app.config

I'm using autofac with specflow to call the instances of the browsers and would like to know if there's any way to set an extension for the direct browser in the app.config something like this: <--component name="Chrome" type="OpenQA.Sel...
asked by 27.08.2018 / 15:56
0
answers

Problem in saving many-to-many relationship with Entity Framework Core

I'm having trouble saving a many-to-many relationship with Entity Framework Core I have the following entities [Table("quadros")] public class Quadro : BaseEntity { public bool Ativo { get; set; } public string Titulo { get; set; }...
asked by 03.09.2018 / 03:08
0
answers

USB Connection with Microcontroller in Visual Studio C #

I have a microcontroller programmed to send data in Visual Studio c # through class USB Hid Net Class . I have the license to use the class already and the application has run normally on several computers. The data is passed through the...
asked by 03.09.2018 / 13:26