saurav.rox
New member
- Joined
- Apr 13, 2023
- Messages
- 3
- Programming Experience
- 1-3
I have been using an enum to save a field value in the database. The enum type stores the values in the integer form. However, now I want the field type to be changed to list enum. But when I apply
Previously,
Now I want to change it as:
The database I am using is Postgres.
Any help would be more than appreciable.
update-database
, it throws an error: column "ProgramCredit" cannot be cast automatically to type integer[].Previously,
ProgramCredit
field was just an enum type declared as: public AccountProgramCreditEnum ProgramCredit { get; set; }
. This generated the column type as integer. As shown in the screenshot below:Now I want to change it as:
public List<AccountProgramCreditEnum>? ProgramCredit { get; set; }
so that this column would change to List as integer[].The database I am using is Postgres.
Any help would be more than appreciable.