Questions tagged as 'c#'

0
answers

How to solve Stackoverflow exception that occurs in Entity Mapping for Model?

In my application a Team has several users and a User belongs only to a Team (1: N), so I have the following entities: public class Equipe{ public Guid EquipeId {get; set;} public string Nome {get; set;} public virtual ICollect...
asked by 18.05.2018 / 00:51
0
answers

Error in Convert.ToDateTime [duplicate]

I have the following code: public JsonResult salvaPaciente(string cns, string sexo, string dataNasc, string nome, string raca, string cep, string ibge, string logradouro, string endereco, string numero,...
asked by 18.05.2018 / 14:45
1
answer

Get return from url c #

I need to get a return from an ajax that I send. The URL returns me something like: http://localhost:11910/ProtocoloExterno/Inserir?itensContrato%5B0%5D%5Bid%5D=1&itensContrato%5B0%5D%5BvalorUsado%5D=15110%2C10&itensContrato%5B1%5D...
asked by 01.06.2018 / 18:54
0
answers

Insert Error: Incorrect integer value 'EXAMPLE' for column 'id_example' at row 1

I am trying to insert into my mySQL database through Visual Studio 2017 - C # (localhost-wamppserver) but it is giving error. The first column of the records table is the record_id which is the primary key of the records table and is auto_inc...
asked by 01.06.2018 / 11:48
0
answers

Defining characters to be used in creating a salt

I need to generate a salt, but I need all the characters to be part of a list of numbers and letters. string usedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; I generate salt with this function: public static...
asked by 01.06.2018 / 10:30
0
answers

Mask property does not appear [closed]

The Mask property is not appearing in the text box. I'm using Visual Studio 2017.     
asked by 01.06.2018 / 17:59
0
answers

How to send data from the combobox to a DBMS sql server? [closed]

I have an application where one of the forms contains a comboBox with data filled from the Item (Collection) property. How to send data that is in this comboBox to a sql server database?     
asked by 01.06.2018 / 10:25
0
answers

Entity mapping with .Net Core 2

I have the following entities: public class Transacao : IEntity { [Key] public int Id { get; private set; } public int LojaId { get; set; } public virtual Loja Loja { get; set; } public int Adquir...
asked by 02.06.2018 / 00:26
0
answers

Consume an asmx service from a rest

How do I pass an object I have in a REST to an ASMX ? I have this controller in REST that has the object (client) that I want to send to an ASMX [Route("api/[controller]")] public class OptOutClientController : Controller { HttpClient c...
asked by 25.06.2018 / 20:05
1
answer

TreeView with Nodes & Childs through SQL database

I would like to know how I can TreeView popular with Nodes and Childs through an SQL connection. The connection is already done this is the code I have for now, but it does not work since it only adds a node that is the first one in the l...
asked by 27.06.2018 / 14:23