Questions tagged as 'c#'

1
answer

C # ComboBox and SQL

I would like to know how to load values in a combobox, listing an entire column of the database, for example, I have a column that is called "Beer" and has several names, I would like to list that column in a ComboBox. Thanks. I have a Stored...
asked by 21.09.2016 / 01:25
1
answer

Creating folders within Program Files

I'm having trouble creating folders within program files. Where I work there is an application that only works if files are within program files and the process of creating folders today is completely manual. Nobody was ready to make an in...
asked by 27.07.2017 / 21:04
1
answer

C #, Returning a Sql Server query on the Grid View date [closed]

I have a bizarre problem, I have a table in the database Sql Server , where it has a bit field, I'm pulling data from this table, which actually is a View . I make my statement Select , and execute by SqlDataReader...
asked by 27.07.2017 / 02:26
1
answer

Using multiple Schemas with Entity Framework 6

I'm starting to work with the Entity Framework, and I need some example of how I can define for my tables the Schemas that each is contained. My database was created as in the example: /*schema [Pes] -> relativo ao contexto Pessoa*/ Pes.Pes...
asked by 07.10.2016 / 21:55
1
answer

Download a pdf from a WEB application to a desktop application, in C # [closed]

I have to do a job for college using C #, with Visual Studio, where a user accesses a web application, uploads a file, and sends it to a remote desktop machine and saves it to a specific folder. I will use ASP.NET MVC in creating the WEB appl...
asked by 06.10.2016 / 21:13
1
answer

How to make my ASP.Net MVC project see folders with images? [closed]

I have a question, I have a folder with images included in my ASP.NET MVC project, but when my project is running it does not map this folder so it can not include images to my site. I have the following path Content/NewTheme/img/ :...
asked by 05.10.2016 / 14:15
1
answer

Update object list via entity Framework

Good morning! I wanted to ask for your help just to see if there is a better way to do it. Today I have a list of objects of type    Formation_RelationLineDeletted and I make a foreach in this list, taking item by item giving the attac...
asked by 04.10.2016 / 17:22
1
answer

Format text Windows Forms

I have a system and I need to justify the text on the left, I already tried with the textbox and with ritchtext and neither of them give me this option, I can only align the left, but when I align only the first column of text is aligned, the ot...
asked by 12.08.2016 / 19:33
1
answer

MVVM and Binding for different classes

If in the Model View ViewModel pattern I have:    MainPageModel.cs    MainPageViewModel.cs    MainPage.cs    MainPage.xaml    MainPage.cs is also part of my View layer? If so, is it that I should delegate responsibili...
asked by 17.08.2016 / 21:39
1
answer

EntityFramework 6: Doubt when Persisting a Relationship N for N

Template: public class Agenda { public int Id { set; get; } public string Horario { set; get; } public string Local { set; get; } public virtual IEnumerable<Exame> Exames { set; get; } } public class Exame { public i...
asked by 28.07.2016 / 20:50