Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
- Posts: 30
- Joined: Mon 13 Jul 2009 21:38
Is there currently a way to use enums in LINQ-to-Oracle? Something like this exists in the Microsoft LINQ-to-SQL provider
, any way to get equivalent behavior for the dotConnect oracle provider?
We have a RecordStatus column on every table, the RecordStatus is really an enum. It would be nice/more appropriate to be able to treat it this way instead of convertering to/from a int or long everywhere. Here's an example of what it would map to:
Code: Select all
public enum RecordStatus
Active = 0,
Inactive = 1,
Deleted = 2
- Devart Team
- Posts: 2919
- Joined: Mon 07 Jul 2008 13:16
We are investigating the possibility to add this functionality in one of the nearest builds.
I will let you know as soon as it is available.
As a workaround you can change your LINQ template to set the type for particular property to an enum, it will work.