Questions tagged as 'c#'

1
answer

What is the difference between Settings and Resource?

Settings save user preferences to an application's color scheme for example and Resource is for the same thing? When should I use Settings and when should I use Resource in the Winforms application?     
asked by 14.01.2018 / 16:16
2
answers

Load a Dropdownlist based on an enum - Asp.net core

I have an enum PersonNature that relates to the Person table. I need to create a dropdownlist in my view that displays the list of PeopleNature (PHYSICAL AND LEGAL PERSON), including showing the personal nature related to the current record, acc...
asked by 27.02.2018 / 15:53
1
answer

Problems when referencing a classlibrary of .net framework core - C #

I need to reference a .NET class library in my WPF layer which is a .NET Framework layer. But it bursts a compilation error saying that it can not be referenced. The error message is:    The project "ProjectName.csproj" is destined 'ne...
asked by 10.01.2018 / 09:45
1
answer

web request and json in c #

I'm working with firebase, and am fetching the data from the server with HttpWebRequest, I was able to recover this data as follows;    {"- L1OD7LjENM8ZHSpS7NE": {"Age": "18   years "," Name ":" vitor "," Telephone ":" 11   970705570 "}," - L...
asked by 28.12.2017 / 16:58
2
answers

How to assign a class to the whole and not only the attributes separately?

I have a class constructor method that when called makes a query in another database class that returns me the same class as the constructor method ( only with assigned data ), eg public Invoice(int id) { CallDB db = new CallDB(); Invoic...
asked by 29.12.2017 / 13:41
2
answers

Mask CURRENCY {en-us} in GridView C #

My problem is: I want to include a mask with the Brazilian currency in a GridView column. I am using CultureInfo.CurrentCulture , but when I put it to run, in GridView only the first Row appears the mask and not the others...
asked by 14.06.2018 / 18:35
1
answer

Convert double to string keeping the same format

I need to convert a value of type double to string in C #, without this value being changed to scientific notation. My code is: double valor1 = 0.000024746578864525161; string resultado = Convert.toString(valor1); My outpu...
asked by 15.06.2018 / 15:01
1
answer

I need a movie API that returns Json

Lords all good? Does anyone have a movie API that returns json if possible with the movie photo? I'm doing some sample app with xamarin however the api that it uses in example n works over ..     
asked by 09.12.2017 / 18:57
1
answer

Circular relationship with EntityFramework Core

I need to relate the Person with Person entity to the Person using the EF Core, but is giving the following error in Migrations:    "The navigation property 'PersonFilial' can not be added to the entity type 'PersonCadastro' because a propert...
asked by 21.12.2017 / 00:29
1
answer

Show window without frameworks

How can I display a window without using frameworks ? For example, display the console window or another without .NET and other frameworks .     
asked by 30.11.2017 / 16:31