Questions tagged as 'c#'

2
answers

AutoMapper with Expression

I'm doing a generic repository and I came across the following situation. In this call I can do the mapping and it works perfect. public IEnumerable<PaisViewModel> GetAll() { return Mapper.Map<IEnumerable<Pais>...
asked by 10.04.2015 / 16:50
1
answer

My program has a performance problem

I made this program with the help of the user ramaral. It is a Windows Forms program and has to run another console. The issue is that I need instead of that other program to open the console, it will be hidden (without CMD window) and my progra...
asked by 12.07.2015 / 02:37
1
answer

How to do the mapping (EntityTypeConfiguration) of this complex type?

The enumerators in my application follow the 'secure enumerator' design pattern, where I have the enumerator declaration as static members, and the enumerators instance following a contract (IEnumeratorSecure interface). This is the default i...
asked by 16.07.2015 / 13:35
2
answers

Pass more than one parameter to another page

I am doing a windows phone application, in which the main screen (first screen) is made a calculation, and the result is displayed on a second screen. I was able to make the 'connection' between the two screens as follows On page 1 or main...
asked by 28.02.2015 / 19:58
1
answer

SecurityException - Permission Error

Hello, I'm uploading an application in my Locaweb hosting and I stopped in this error, does anyone know how to solve this permission problem? [SecurityException: Request for the permission of type 'System.Diagnostics.PerformanceCounterPermissi...
asked by 04.03.2015 / 12:53
1
answer

Detecting colors or geometric shapes of an image

Is there a framework for detecting colors or geometric shapes within a static image, such as a .jpg? Preferably for C # or Java Hypothetical scenario: The framework would identify that there are 3 objects in the image above, knowing ho...
asked by 27.02.2015 / 05:08
1
answer

Desktop applications developed in HTML CSS and Javascript

I have an MVC Web application in .Net. I have the need to migrate it to the desktop. But I would like to keep my application with Web Views. I know that for Android and IOS app it is possible to reuse the screens if they were developed in HTM...
asked by 12.06.2015 / 17:11
1
answer

Attach many objects with id = 0

Good morning, people, On my system here at work I have the following architecture: A PROJECT (which has some information) is composed of several PARTS. The parts are very different from each other. One, for example part 1, has several attache...
asked by 08.06.2015 / 15:34
1
answer

Does not Write IIS error System.Diagnostics.XmlWriterTraceListener

I did a test project in Github to demonstrate how the Log works with System.Diagnostics.XmlWriterTraceListener everything works on my machine, but when I play on the server it only writes information and Warning the error it does not anyone coul...
asked by 23.10.2015 / 11:06
1
answer

How to translate error messages from validation summary errors asp .net?

I do not find a file that brings me the error message strings to be translated, annotation is fine, only those that bring more complex errors, such as    Passwords must have at least one digit ('0' - '9').     
asked by 21.10.2015 / 17:05