Questions tagged as 'enums'

2
answers

Send Display Text of an Enum by Json

Well, I have an enum for the days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that has a da...
asked by 19.01.2016 / 20:50
1
answer

How to use enum with EntityFramework [duplicate]

I have a relationship of my system where one class makes a relationship with another, but this other class there is nowhere in the system to change / delete its state (they are just static data) p> I would like to know if the ideal would b...
asked by 21.02.2018 / 17:49
1
answer

Enum value as null

I have the following Enum : @AllArgsConstructor public enum Lojas { ALIEXPRESS("AliExpress"), MERCADO_LIVRE("Mercado Livre"), EBAY("Ebay"), WISH("Wish"), GEARBEST("Gearbest"), BANGOOD( "Banggood"); @Getter @Sett...
asked by 21.03.2017 / 23:42
0
answers

Send ENUM parameter to C # via JavaScript

I'm developing a project in which I have to consume a Web Service in .NET that requires an object with some parameters of type Enum. The call is made by Javascript as below: function ConsultarPeriodo(){ var metodo = 'ConsultarPeriod...
asked by 06.03.2017 / 20:48
1
answer

Status with colors in gridview asp.net C #

I need to make the texts of the exam statuses of an app appear in different colors, in the case of black, marked green and not red, these statuses are in an Enum. Follow my code if anyone knows the best way for this implementation....
asked by 14.10.2016 / 07:57
1
answer

need help in enum in java [closed]

I'm migrating a desktop application in delphi to java, and in delphi has a class that persists in the bench the values 00, 10, 20 and 30. I'm doing an enum in java to persist values. I know that by annotation, I can define the string and ordinal...
asked by 08.04.2017 / 21:18