Questions tagged as 'c#'

1
answer

Inserting data EntityFramework C #

I have 3 Entity, where are Countries, States and Cities. I am doing the Crud of entity City, and when saving it is asking the relationship of States and Countries, but this I do not need, as I have a property called StateHandle in the entity Cit...
asked by 26.06.2017 / 19:42
0
answers

How to import into the code database tables with Entity Framework 6

In my project, I have only a few entities that are not connected to the database, but I run some procedures through EF6. These procs are just queries that bring data across information from more than one table. Now I want to insert entitie...
asked by 26.06.2017 / 21:47
0
answers

Generate grid with multiple records [closed]

Good morning, I need to make a grid where I need to say exactly the value of each line based on a column of a table in the bank, I need help because I have never done anything like this. It is an ASP.NET MVC web application using SQL Server a...
asked by 27.06.2017 / 16:03
0
answers

List multiple records from the same table [closed]

I need to make a screen list multiple records of the same table being one in each field of that screen. The project is web in ASP.NET MVC and I use SQL Server as the database. This is not a CRUD, I just need to have this screen load those rec...
asked by 26.06.2017 / 19:45
1
answer

How to encrypt data in App.config

I would like to encrypt the keys (ApiKey and Secret) below in App.config: <?xml version="1.0" encoding="utf-8" ?> <configuration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />...
asked by 02.07.2017 / 18:25
0
answers

DSL Tools: Center a shape in the diagram

I'm developing a DSL. In the main window, I have two panes ( Panel ): on one, a listbox of the diagram , and on the other the diagram itself. I would like to click on an item in the list to center the corresponding shape on the screen. I...
asked by 03.07.2017 / 02:47
0
answers

How to deal with this situation where a class must have a persistent configuration object?

I found a problem recently that basically was this: a system needs every last day of the month to show the option for the user to generate the next month's tickets and need every first day of the month to show the option for the user to generate...
asked by 13.05.2017 / 05:02
0
answers

Compatibility Android and Windows Phone Encryption

I have a C # application that generates information in Windows Desktop and sends files to Android application. I send the encrypted information with the functions below, but I'm developing the same Android application for Windows Phone and th...
asked by 07.05.2017 / 21:09
1
answer

Error consuming API GitHub V3 using HttpClient or even HttpWebRequest

I am not able to consume the GitHub V3 API with basic authentication (without using Octokit). I know it works with RestSharp plus I want to know why it does not work with HttpClient and HttpWebRequest . I always get the same answ...
asked by 06.05.2017 / 15:37
0
answers

Fill DropDowList with data from another screen [closed]

I have a time zone screen where I have the fields name of time zone, utc and daylight saving time only, it is working perfectly. only I have to create another screen "timezone period" with three fields the name of the time zone already registere...
asked by 11.05.2017 / 15:25