Questions tagged as 'c#'

1
answer

Creating Migration Error

I am creating a user registry in C #, but when I include the domain layer and I am going to create the migration, the error below is happening. I could not identify what is happening. "No suitable builder found for entity type 'User'. The fol...
asked by 06.07.2018 / 03:18
1
answer

Error EF Update Method with Firebird 2.5

When I try to update an entity Firebird is returning this error "Implementation limit exceeded block size exceeds implementation restriction", simply get the entity of the bank and has to update without changing anything in it, so I saw the link...
asked by 29.06.2018 / 20:55
1
answer

How to encrypt StringConnection for a remote MySql database in C #

I'm developing an application that I want to sell, so I've created a serial verification system that checks if that activation code is already associated with the PC MAC. I do this by connecting to a remote database. If someone has a better and...
asked by 04.07.2018 / 10:29
2
answers

How to use the same instance for several classes?

Below I'll try to give a value to the progressBar that is in the Controles class. The method of Form1 , will call the method of class ManipularProgressBar to change the value of Control ProgressBar that is in class...
asked by 29.06.2018 / 01:38
1
answer

How to select the contents of a column from a DataSet C #

Is there a better way to fetch the contents of a specific column? I have information that is repeated in a "template" column I want to retrieve this content only once. I'm doing this, but maybe it has a better way to do it. public Data...
asked by 04.07.2018 / 03:26
1
answer

Block download in an audio streaming

I have an MVC Web application in which it picks up an audio stream according to the received parameters: public new ActionResult File(string q, string url) { try { var query = new GetFileQuery() {...
asked by 04.07.2018 / 18:43
1
answer

How do I save an image in the database through an application? [duplicate]

I have an application in C # and I want to make it possible to save a photo in the SQL database. 1- How do I set up the database structure to receive an image? 2 - How will I send the application photo to the DB?     
asked by 05.07.2018 / 06:29
1
answer

error in executing application c # asp.net entity

Good morning, My project started out of nowhere with this error. Could not load file or assembly 'System.Net.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifes...
asked by 25.06.2018 / 16:21
1
answer

How do I update the photo? At the moment it is only saving in the folder, wanted to display the image

$("#btn_confirmar").click(function () { var form = new FormData(document.getElementById('formAlteraFoto')); $.ajax({ type: 'POST', url: '/Usuario/AlterarFoto',...
asked by 28.06.2018 / 21:38
2
answers

C # - Filter Include - Context [duplicate]

In the method below, I return some records from my EntityIntermexRegras entity, where it has relation to the .INCLUDE ("Emails and Parameters"). Since EF does not allow filtering in .INCLUDE, would you like to check how to filter these entitie...
asked by 06.06.2018 / 22:35