Questions tagged as 'c#'

2
answers

Include EntityFrameWork

I'm working with Entity Framework 6, I made all the necessary settings. I have a Person Class that owns a Property of the Type Address, inside address I have a property Municipio that by the end has a property of Type UF. I have a function that...
asked by 27.06.2014 / 21:43
1
answer

Time Questions Area

I'm developing an application that should provide an environment where the following functions are performed: Administrator - Register questions - Edit user - Viewing Answers - View evidence - Entered note User - If you register...
asked by 08.10.2014 / 22:23
1
answer

Identify the Area, Controller, and Action of a View

I need to create an HtmlHelper (MVC 4, C #) that identifies and reports the Area, Controller, and Action of a View. I'm not getting anything. How can this be done? Is there a function or method that already does this?     
asked by 06.10.2014 / 16:37
1
answer

When do I have to unsubscribe from events?

A question on the same theme has a answer it says:    You do not have to unsubscribe from an event when the instance that is subscribing has the same scope as the instance that is being subscribed to. Free translation:    You do no...
asked by 10.10.2014 / 16:23
1
answer

Manipulate String C #

I have strings that come like this: "Cadastro,Novo" "Cadastro,Editar" "Cadastro,Excluir" "Cadastro,Morfar" "Cadastro,Etc" "Entidade,Novo" "Entidade,Editar" "Entidade,Excluir" "Entidade,Morfar" "Entidade,Etc" And I have 2 columns that I wan...
asked by 04.09.2014 / 22:36
2
answers

String Connection excel .xls .xlsx C #

I have a connection string with excel, but it is only .xlsx and is giving this error    ServerVersion = 'connExcel.ServerVersion' threw an exception of type   'System.InvalidOperationException' I need a connection with both at the same ti...
asked by 02.09.2014 / 16:00
1
answer

Return Join Linq C #

I'm trying to return a join for my class and it's giving me the following error    Error 1 Can not implicitly convert type   'System.Collections.Generic.List' in   'System.Collections.Generic.List' C: \ Projects \ ASP.NET \ AdvanceTechniques...
asked by 19.08.2014 / 15:36
1
answer

Dynamic image system and SEO behavior

I read about SEO and understood that the higher the traffic of text, you have more content to be indexed by Google. I have an application that is based on images, it's practically a "multiple-gallery" generated not exactly like this, but more...
asked by 23.08.2014 / 13:35
1
answer

Using SendMessage with applications such as Notepad, Word, DreamWeaver

I'm having difficulty working with SendMessage() , some programs work from one method and others from another ... To write to Notepad, do the following: [DllImport("user32.dll")] public static extern IntPtr PostMessage(IntPtr Hand...
asked by 24.08.2014 / 08:41
1
answer

Doubt about performance in using the using statement

Which of the two ways to check if a record of such TYPE has already been registered is more performative? Are there differences, mistakes? What are the implications? Does using block only release connection resources or all objects create...
asked by 04.06.2014 / 17:40