Telerik blogs
  • Productivity

    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...
    May 27, 2021 2 min read
  • Productivity

    String Matching in LINQ

    Performing simple string equality tests is often not enough when application user convenience is key. Often only a fragment of a string is known to the user, or many of them. Sometimes there is a need to search for a fragment in multiple columns. Which options does OpenAccess and LINQ provide to perform string matching? Into which SQL is the LINQ expression translated? Let’s use a simple class model for this post: a Person with a FirstName, a LastName and a NickName. Let’s assume parameters with the name simpleParam (string) and manyParam (ICollection<string>). String equality comparison Using the standard Equals method translates directly into...
    May 27, 2021 7 min read
  • Productivity

    Telerik OpenAccess ORM now with Visual Studio 11 Beta support

    Visual Studio 11 Beta has already been around for several weeks and most of you have already tried it. Plenty of different opinions were out there – from praising the cool new features it offers, to grumbling about the surprisingly changed user interface. For all of you who are developing your applications leveraging the cutting-edge technologies on the market, we want to assure you: OpenAccess ORM will not be missing in Visual Studio 11 and you will be able to use it immediately, even in the VS's Beta version. In fact, since there is still a long way to go until Q2,...
    May 27, 2021 1 min read
  • Productivity

    Telerik OpenAccess ORM - It's all about the speed

    An object relational mapper is about developer productivity, about the ability to quickly and easily make changes to your model, about integrated change tracking, caching and moving to other databases easily. It is also about speed. In this blog post I will try to explain the most common questions about OpenAccess in regards to performance and how you can improve it. The OpenAccessContext When using OpenAccess you always start with a type that derives from OpenAccessContext. Creating an instance of that type is a lightweight operation, typically in the order of a dictionary lookup. Then you execute your first LINQ query, and...
    May 27, 2021 4 min read
  • Release

    Telerik OpenAccess ORM Q1 2012 - Batch Operations

    In previous versions of OpenAccess ORM, configuring large data models could be a bit cumbersome. However, I am happy to say that in Q1 2012 we are adding a new batch operation dialog, which makes configuring data models easier than ever! Using the Batch Operation Wizard, developers can efficiently make updates to several entities, or members, in a single operation! To launch the batch operation dialog, right click on the visual design surface, and select Batch Operations. This menu item launches the new wizard: On the left side of the wizard is a search area. This allows developers to search for entities, or members,...
    May 27, 2021 3 min read