Telerik blogs
  • Productivity

    Generic Data Access

    When using an ORM one of the first questions users have is: But how is my data accessed? OpenAccess uses a technique called Enhancement to augment the compiler generated code. It works like as if the compiler had weaved in some additional code - much like the AOP people are doing it. The added code allows to provide the application with the needed management, lazy loading and change tracking capabilities. Because the code is compiled, there is no need to use reflection and therefore guarantees you a speedy access to your data. Your database data just comes into the objects as...
    May 27, 2021 2 min read
  • Productivity

    Telerik OpenAccess ORM and Ado.Net Data Services Example Refreshed

    This is a refresh of an older blog that demonstrates Telerik OpenAccess ORM working together with Ado.net Data Services and SilverLight. This time we updated the client-side a bit, using our RadControls for SilverLight. Since some of the steps are basically the same as in the previous example don’t be surprised if you find something familiar.   We are continuously investing into better LINQ support for our product, and this is just we need to plug into the Ado.net Data Services framework.   Now let’s get to the application! Firstly we have to build our data model. To do so add a library project to the...
    May 27, 2021 4 min read
  • Productivity

    Using Telerik OpenAccess ORM in N-Tier applications

    Hello, by means of introduction, my name is Alexander Filipov and I am working as a developer for the Telerik OpenAccess team. In my first post I would like to share some thoughts about using Telerik OpenAccess ORM in advanced n-tier web applications. Undoubtedly, the main goal in such architectures is to lose-couple the tiers from each other, so the code is modular and easier to maintain. Here comes the question how Telerik OpenAccess ORM fits into this scenario and which are the layers that it should be used in. The optimal approach is to have not...
    May 27, 2021 2 min read
  • Productivity

    Editing Telerik OpenAccess ORM class-generating templates

    Telerik OpenAccess ORM uses a set of templates to generate classes from a database schema. These templates are nothing special but class definitions with a lot of placeholders that are being replaced with real values to produce buildable source code. Using templates gives us the ability to fully customize our reverse mapped classes. I am going to demonstrate how we can edit the templates so the generated classes will implement the INotifyPropertyChanging and INotifyPropertyChanged interfaces. All class-generating templates take place in the “C:\Program Files\Telerik\OpenAccess ORM\sdk\IDEIntegrations\templates\PCClassGeneration” directory. Navigate to it and open the “default.vm” file under the “\cs\templates\classgen\class” subfolder. This...
    May 27, 2021 2 min read
  • Productivity

    Model First or Schema First

    Telerik OpenAccess ORM let you work your preferred way: either you start with your object model and Telerik OpenAccess ORM generates/maintains your database schema for you, or just start with your existing schema and let Telerik OpenAccess ORM reverse map it to a new object model.   Telerik OpenAccess ORM provides support for both approaches for years and it will get even better by providing complex functionalities out of the box like Roundtrip Mapping (see below). Because we are getting requests for ‘Model First’ functionalities by our customers, and this is the way the upcoming version of Entity Framework names the Forward mapping...
    May 27, 2021 3 min read