M
mitdej
Hi there,
I have an several enum types that starts from a nunmber other than 0.
For example:
public enum InternalStatus
{
Pending = 1,
Ported = 2,
Suspended = 3
}
I put this values in a int column of a MSSQL table.
When I try to read tha values back from the database and cast it to
the enuum type, the casting acts as the enum type starts from 0.
I tried Enum.Parse, but it didn't help.
Any suggestion...?
I have an several enum types that starts from a nunmber other than 0.
For example:
public enum InternalStatus
{
Pending = 1,
Ported = 2,
Suspended = 3
}
I put this values in a int column of a MSSQL table.
When I try to read tha values back from the database and cast it to
the enuum type, the casting acts as the enum type starts from 0.
I tried Enum.Parse, but it didn't help.
Any suggestion...?