Yes, it is possible to use enumerations defined in another project. While modifying the code generation templates should work I would like to suggest a different approach. Once the Telerik Data Access
project reference the library that contains the enumeration please change the type of the property (as suggested in the article) from int
(for example StatusesNS.OrderStatus
as opposed to just OrderStatus
). Once the .rlinq
file is saved it will cause the code to be regenerated and you will notice that the correct using
statement is added.
Should you have any further questions do not hesitate to contact us back.
OpenAccess ORM is now Telerik Data Access
. For more information on the new names, please, check out the Telerik Product Map