Questions tagged as 'c#'

1
answer

Fill Combobox with Dapper

I'm using a combobox component with Dapper , but I'm not able to fill in the combobox correctly, LookUpEdit ctlControle = (LookUpEdit) pr_Controle; var parametro = new DynamicParameters(); parametro.Add("@TABELA_NOME", pr_TabelaNome); parame...
asked by 20.08.2015 / 01:54
3
answers

Access content from another project in the same Solution

The case is as follows: I have a Solution with two Projects, one Administrative and the other a WebSite, both using C # and MVC4. In the first project I save images and files in a Documents folder, and when accessing the WebSite I wo...
asked by 24.08.2015 / 20:04
1
answer

How to remove xml encapsulation in json returned by WebService

I created the following method: [WebService(Namespace = "http://myDomain.com.br/PublicacaoService")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] [System.Web.Script.Services.ScriptSer...
asked by 12.08.2014 / 18:49
1
answer

How to use session for authentication in MVC 4 with C #?

My scenario is as follows. I have an MVC 4 application. On my controller I check the logged in user and password. (I think) I put user data in a session after the data is verified and correct. My pages are cshtml (Razor). And I have a master...
asked by 02.07.2014 / 23:50
4
answers

How do I update my data in the table using EntityFramework?

var contactado = ContactadoRepositorio.ObterListaContactadoPorCodigo(procedimentoVM.CodContactadoPessoa); //obtenho o contactado pelo id obtido; foreach (var c in contactado) { var contactadoPessoa = new ContactadoPessoa() {...
asked by 21.01.2015 / 13:35
1
answer

How to resize thumbnails generated by Uploadfy? ASP.NET C # MVC 4

Hello, I would like to know how to resize the thumbnails generated by the jQuery Uploadfy plugins. As I show in the print below, it generates the thumbnails according to the actual size of the images, is it a good practice to only resize them in...
asked by 17.03.2014 / 15:21
1
answer

Consume repository of entities directly from the application layer

I have a scenario that I need to fetch a list of Active Employees with Entity Framework and display them on the screen (I need to convert to DTOs before displaying - which I do by the Application layer). For a Domain-Driven Design (DDD) scena...
asked by 13.02.2017 / 00:57
1
answer

Some doubts about socket

I'm taking a look at an example from Microsoft itself and I have some questions. Example taken from this link: link Let's imagine a chat environment via socket ... Should I establish a socket connection every time I send a message? Here...
asked by 03.03.2017 / 18:53
1
answer

EF6 - Rush load bringing less aggregated data than bank data

I'm having the following problem with my relationships in Entity. When I look for example a Bank Client by Id: return _databaseContext.Clientes .Include(x => x.Enderecos) .Includ...
asked by 11.05.2017 / 19:12
1
answer

How to read, search and change file by bytes?

Does anyone know how I can find more bytes after I have found the byte sequence of my variable? For example: in the file it will look like this: 6261725610 I'll look for this: byte[] findBytes = { 0x62, 0x61, 0x72 }; and wanted to ret...
asked by 03.07.2015 / 17:03