Questions tagged as 'c#'

1
answer

Doubt in studying the Code First development approach

I am currently studying the development approaches used in the Entity Framework 6 approaches Model First and Database First I found the content on the internet easily and I understood, but the Code First approach is really complicated...
asked by 17.12.2015 / 18:34
2
answers

JSON function Returns no value [closed]

I have a problem, I would like to populate my DropDownlistFor with the result of another DropDownListFor, so I'm using Ajax and Json, same concept they make when they want the result from State to City. Model: public class SegmentMOD...
asked by 17.12.2015 / 14:29
1
answer

How to open a metadata in C #

I have a ZipFile class in my project. In it there is a method called ExtractAll , which is the method used in my file extraction routine. I need to look at this method (if it is possible) because when I extract the zip file, I have...
asked by 10.03.2016 / 12:40
1
answer

WebMethod with Data Model

Good morning, I would like to receive a data model in a method from my webservice, what is the correct procedure for me to get it? I'm trying the code below but it's not working. namespace UI.Web { [WebService(Namespace = "http://tempuri.o...
asked by 17.12.2015 / 14:14
2
answers

Inheritance X Composition - MySQL C # Entity

I was having a question of inheritance modeling in C # involving Person, Individual, and Legal entity, but Cigano Morrison Mendez helped a lot! Now I have another question in another type of relationship. As I said, a person may be physical or l...
asked by 10.03.2016 / 23:42
2
answers

I can not make an animated gif work in my WPF project

I downloaded a gif.animado in this link . The problem that in the link I double click and it works. I drag it to my application and it no longer works. The image appears, but still and not moving. I want to put this gif instead of a progressbar...
asked by 18.03.2016 / 17:11
3
answers

Formatting with UNION and LINQ in C #

I'm using the following code to bring a list of companies with the CNPJ formatted into the DataGridView: dgv.DataSource = db.pessoajuridica .Select(d => new { d.idPessoa, d.nome, d.cnpj }) .AsEnumerable...
asked by 19.03.2016 / 16:56
1
answer

OutputCache only valid at controller level?

I have read the article: link And I started using the: [OutputCache(Duration = 60, VaryByParam = "none")] When I put it in the controller I notice the difference clearly. But when I'm using a library that is called by my control...
asked by 18.03.2016 / 15:02
1
answer

How to open an exe inside a windows form C #

I need to open an .exe inside a Windows form in C #, how to proceed with it. I already researched the net and found the following example: [DllImport("user32.dll", EntryPoint = "SetParent")] public static extern IntPtr SetParent(IntPtr hWndChi...
asked by 17.03.2016 / 20:13
1
answer

What is the best alternative for recording data using a 3G connection?

I have the following situation: a header table with the fields: IDJOGO IDMODALIDADE IDUSUARIO VALOR_JOGADO HORA_JOGO And a detail table: IDJOGO NUMERO_JOGO In this case, would it be feasible to write the header, retrieve the...
asked by 10.12.2015 / 02:24