Questions tagged as 'c#'

2
answers

JsonResult values are received by javascript but fields are not given value

javascript function receives values but fields are not receiving values. Controller function public JsonResult GetSequencia(DateTime dataAbate) { db.Configuration.ProxyCreationEnabled = false; var lote = db...
asked by 06.03.2018 / 01:02
0
answers

How to do interaction between InputText + Javascript between Controller and View in Asp.Net MVC

I have the following problem ( For better explanation we have attached image ). Image link Owner 1 arrives with 100 oxen; Owner 2 arrives with 30 oxen; Owner 3 arrives with 50 oxen. The procedure for these steers to be vaccina...
asked by 05.03.2018 / 22:29
0
answers

C # Microsoft.Speech.Recognition DictationGrammar ()

I have a problem using the Microsoft.Speech.Recognition library. I'm trying to make a C # application with speech recognition. I need to recognize text spoken in pt-BR, but only rules configured using a Grammar (). I would like to recognize f...
asked by 13.03.2018 / 15:14
1
answer

How to create List of a class inside another class and not be mapped in the Entity Frameworks

I have a class called Camera [Table("Camara")] public class Camara { [Key] public int CamaraId { get; set; } [Display(Name = "Nome")] [Required(ErrorMessage = "O Campo {0} é requirido!")] [StringLength(50, MinimumLength...
asked by 13.03.2018 / 16:01
0
answers

Asp.Net Identity stopped authenticating after changing the String Id to Int

I'm developing a system using AspNet Identity, I decided to change the primary key type of string to int, so far so good, the application is registering the right user, but when I log in is not authenticating the user, also no error, just return...
asked by 13.03.2018 / 15:49
0
answers

How to ignore a "Duplicate entry error" in MYSQL and insert the remainder not duplicate

How to ignore a exception and insert the rest of the fields when I get this error in MYSQL using mysql .NET connector? My try catch is as follows: try { conexao.Open(); MySqlDataReader reader = comm.ExecuteRea...
asked by 12.03.2018 / 16:50
2
answers

Method to automate the call of Forms in C #

Here's what I'm trying to do I'm creating an application in C #, MainFrame is the MDI Parent, and I own other windows as well. What I want is to use a class called "FormCaller" to call other Forms automatically, so I do not always have to wri...
asked by 02.03.2018 / 16:27
0
answers

Mock browsing properties

I'm running unit tests on my controllers and I often need to Action return the navigation properties along with the template in question. Example public async Task<ActionResult> AlterarValores(int? id) { if (id == null)...
asked by 02.03.2018 / 13:48
0
answers

Error the best overload for '.ctor' does not have a parameter named 'throwifv1schema' with entity

I'm having an error that is not making I can not compile the project. I am using ASP.NET C # entity framework code first The error indicates the best overload for '.ctor' does not have a parameter named 'throwifv1schema' using System.D...
asked by 07.03.2018 / 12:53
0
answers

Send data from datagridview to reportview

I need a help, I have a datagridview and I need to play the data for the reportviwer report, I need a help to do this, I did not do it directly from the datagridviwer. Follow my code that loads the datagridviwer. public void Saldogrid()...
asked by 27.02.2018 / 19:02