As the Telerik OpenAccess ORM Nuget Packages provide support for the code first approach, by default settings are optimized for fluent mapping and only fluent mapping models will be enhanced. In order to use different type of mapping (Xml mapping or Attributes mapping) you need to enable it following those steps:
- Unload the project containing your model and open the project file for editing.
- Enable xml mapping by adding true in the first PropertyGroup of the project file.
For example:
<?xml version="1.0" encoding="utf-8"?>
<Project ...>
...
<PropertyGroup>
...
<UseXmlMapping>true</UseXmlMapping>
</PropertyGroup>
...
</Project>
Additionally you can find an alternative approach for using Telerik OpenAccess ORM without installation described by this documentation article - http://documentation.telerik.com/openaccess-orm/developers-guide/integrating-openaccess-orm-in-your-solution/external-tools-howto-integrate-enhancer-msbuild .