Questions tagged as 'c#'

2
answers

Identify file execution within a ZIP

I created an application that was made available for download within a .zip . Within .zip has .exe and some files needed to perform an installation. So far so good. However, some users do not extract files before installin...
asked by 12.02.2015 / 13:19
1
answer

Entity Framework Left Join

Seeing the question Left join with lambda GroupJoin and with condition , I came up with doubts around the way I do the Left Join with linq Having the following entities public class Cidade { public int CidadeId { get; s...
asked by 12.02.2015 / 13:45
1
answer

Database inheritance

I'm developing an application, where I have 3 tables that have the same attributes, but since they had attributes in those tables that were mandatory for some, not for others, I decided to separate them into 3 different tables. However, I'm havi...
asked by 10.11.2014 / 23:51
1
answer

How to transform lambdas expressions into sql commands?

How can I manipulate expressions to help automate the creation of SQL statements like Linq to SQL? So: using EntityFramework I can make queries such as: var livros = contexto.Livros .Where(livro => livro.SaldoEstoque > 0) .Orde...
asked by 10.11.2014 / 23:24
1
answer

Search with Checkbox

I'm trying to create a search system in my application where the user can search the site's publications according to the genre. I can list the registered genres with checkbox, but I'm lost to do the search query from there. I have the follow...
asked by 15.11.2014 / 21:22
1
answer

How to make a global event

I'm developing a system in which a user can send a message to another, (which gets saved in the database, to have a conversation history), but I would like that while the user is using other system functions , an event occurred and opened a wind...
asked by 07.05.2014 / 17:46
4
answers

Data Conditional Annotation MVC4

I researched bales here and did not find a solution that I wanted. I would like to know if anyone has done anything similar in MVC4. Model: public class Trabalhador { [Required(ErrorMessage = "*")] public int Id { get; set; }...
asked by 07.05.2014 / 15:57
1
answer

Ajax request in C # update authentication

As I do for every Ajax request, give update to forms authentication cookie. I want to update no forms authentication in my controller, because it is a calendar screen that uses FullCalendar. I'm trying to troubleshoot a page, which only do...
asked by 09.05.2014 / 14:24
1
answer

Adding DLL Referenced in a C # Executable

I've developed a console application in C # that makes use of a referenced dll. After doing the batch build and generating the application executable, I tried to run it on a computer that did not have this dll, of course an error occurred. Right...
asked by 08.05.2014 / 22:04
2
answers

How does the communication between the layers in MVC work?

I started to study MVC, but I'm still in theory and I was wondering how the conversation between the layers works in practice. Could anyone give an example C # code without using the MVC framework? Note: Before I suggest, I've already seen th...
asked by 14.05.2014 / 19:50