• .NET

    Bend Telerik OpenAccess ORM to Your Will with Type Converters – Storing Classes to XML

    In a previous blog I showed how to customize Telerik OpenAccess ORM data mappings using custom TypeConverters.  In particular we looked at storing, and querying, an enum by its name rather than its int value.  In this example, I will show how to get OpenAccess to serialize a class to xml, and store it in the database.  In the end you will have a reusable TypeConverter you can use to store any class as XML using OpenAccess! :) Creating the Type Converter The first thing we need to do is create the type converter.  To do that, simply grab the basic skeleton I displayed...
  • .NET

    Bend Telerik OpenAccess ORM to Your Will With Type Converters – Part 1

    In Q1 2011, Telerik OpenAccess ORM introduced a flexible type conversion system. This type conversion system allows developers to instruct OpenAccess on how to map types that it may not support out of the box. This feature makes it possible for OpenAccess to work with built in UDTs, such as SQL Spatial and XML, as well as any custom UDTs developers create. What is a User Defined Type? SQL Server 2005 introduced user-defined types (UDTs). UDTs extend the SQL type system by allowing you to store objects and custom data structures in a SQL Server database. UDTs can contain multiple data types...
    September 20, 2011