Questions tagged as 'c#'

0
answers

CRUD with DAPPER in MVC C #

I would like to know how I can add an edit and search with Dapper library, I already made the insert and delete method. I'm working with MVC C # VS 2013 CONTROLLER namespace WebApplication1.Controllers { public class Default1Controlle...
asked by 10.01.2018 / 20:34
2
answers

Prevent the Entity Framework from trying to insert if the nested resource exists

My case is the following, I have a class orders that a client has, I have two cases, I can pass a post with a new client or I can pass a post with an existing client, if the client does not exist it will try to insert, but if there is going to t...
asked by 01.02.2018 / 15:07
1
answer

Can I generate a PDF file in c # without needing a database?

I am about to carry out a project which has a report form, my client asks me to export it as PDF with the simple fact of clicking on the save button, I want to know if it is possible to do it without needing a database .     
asked by 01.02.2018 / 02:44
2
answers

Copy and Paste into DataGridView Cells, C #

I am trying to copy the value of a celda or several and to paste it to another (%) celda(s) . I currently have this basic method that works. myDataGrid.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;...
asked by 04.01.2018 / 22:49
1
answer

Problem when creating XML document from a class

I develop an application where I create an XML document from a class which I serialize, the problem occurs when a certain node must be repeated more than once, I explain the document that I am creating is an invoice if I sell an article the node...
asked by 25.02.2018 / 20:17
1
answer

Call a wpf form contained in a dll

My question is very specific. Let's say I have an assembly c # and I want my assembly interfaces to be xaml. How can I create wpf forms and call them inside the assembly without being inside the executable assembly that mounts a wpf project and...
asked by 27.12.2017 / 11:47
2
answers

problem fill datagridview c #

hello I have a problem filling the datagrid with the data from my BD, the datagrid is a schedule grid with the days of the week, the problem is that I only fill one cell of the datagrid for each day, that is, if I have in the BD three schedules...
asked by 28.12.2017 / 00:53
1
answer

Read external configuration file other than app.config [closed]

what I try to do is read an app.config file, but as required it has to have another name call badar.config and not be in the same project but say on the disk "D" in the same root. I have already googled and I have not found a clear answer to thi...
asked by 02.01.2018 / 23:48
0
answers

Run python script using C # .NET

Good morning. I'm making an C# .NET application that needs to call a script of python . I tried to call the script through the library IronPython : using IronPython.Hosting; using Microsoft.Scripting.Hosting; p...
asked by 04.01.2018 / 00:02
0
answers

Microsoft.WindowsAzure.Storage.StorageException: Canceled the request: The request was canceled

I have this problem when trying to upload a BLOB file to Azure, it does not happen to me with all the computers, some if they manage to upload the files. Any suggestions? Thanks See the end of this message for more details on how to invoke Ju...
asked by 18.12.2017 / 16:05