Questions tagged as 'c#'

2
answers

Failed to execute Shell C #

Friends, I ask for help to solve a small problem. I'm running SQL command through sqlCmd and Shell in C #, but the file is in a folder that contains "space" as follows. Path: D: \ Sandboxes \ CIA Project \ 3-Development \ Scripts \ DDL \...
asked by 15.07.2015 / 17:45
1
answer

How to pass a list of integers as dapper parameters?

I am trying to pass a parameter that is a list of integers, this should be appended to query in the IN clause of the sql server, but I'm not sure how to use it with DAPPER . I tried to do it this way. var adesao = Adesao.Repositorio.Obter(...
asked by 31.07.2017 / 15:49
1
answer

c # delete drawstring in picturebox

I have a pictureBox where the user at each click of the mouse inserts a text on top of an image in a pictureBox. It inserts several texts in several points of the image, the inserted text gets picked up from checkboxes. Using this code pri...
asked by 02.08.2017 / 18:45
1
answer

Questions about Script Coroutine c #

I made a script next to the coroutine, but rather that it does not work msm not giving error My real intention is to make the button have a delay of up to 10 seconds before making the transition to another canva Could you give me strength?...
asked by 03.08.2017 / 01:31
1
answer

Display 3 Models in a View

I have 3 Models and need to mount 2 (two) lists and a "Save" button: Class:TBProduct:publicclassTBProduto{[Key]publicintTBPRODUTOID{get;set;}publicstringDSPRODUTO{get;set;}publicvirtualICollection<TBProdutoFornecedor>TBProdutoFornece...
asked by 28.09.2015 / 21:10
2
answers

I define a value in a class, when I instantiate it, the value is another

This is the code where I defined a class Animal and a creator method that asks the species of the animal and defines its state as alive: public class Animal { public bool estaVivo, usaDrogas = false; string E...
asked by 27.09.2015 / 03:37
1
answer

Function Linq does not return List

Hello, I have an application and it does not return a list that I make SELECT via Linq-to-Sql The error can be in the SELECT that linq-to-sql is doing. SELECT [Extent1].[Codigo] AS [Codigo], [Extent1].[NomeFantasia] AS [NomeFantasia], [Ext...
asked by 04.09.2015 / 01:24
1
answer

Problem in relationship with EF6 (Self-Relationship and Associative Class)

I need to know if my self-relationship and my associative class are correctly created according to the original model done in the SQL Server Diagram. Original Model - SQL Server MymodelinPowerTools ClassRegion[Table("Regiao")] public cl...
asked by 29.09.2015 / 03:31
1
answer

Textbox / TextEntry in a console application [closed]

Is it possible to add a Textbox to an application console?     
asked by 02.09.2015 / 14:05
1
answer

Send UTC from DateTime Javascript to C #

I have an ASP.Net MVC project as follows: In my view I have a JavaScript variable that holds a date: var hoje = new Date(); In my controller I have an action which receives via AJAX the value of the JavaScript variable in a C # vari...
asked by 03.09.2015 / 16:37