Telerik blogs
  • Web ASP.NET MVC

    Building Real Applications with Telerik MVC & OpenAccess – Building the DAL

    In this blog post we will create a simple data access layer that allows our UI to interact with our data.
    May 27, 2021 3 min read
  • Web ASP.NET MVC

    Building Real Applications with Telerik MVC & OpenAccess – Building the Model

    Using OpenAccess Forward Mapping really allows you to focus on building a strong model, rather than getting caught up in the persistence details, and this can expedite development time dramatically. Every developer I know could use a little more time to focus on more important things :) Before we can use the OpenAccess Forward Mapping Wizard, we need to create a model for our application.  After we have a solid model, we can run the wizard, and it will create the database for us! Awesome!   Getting Started The first thing that I do is create an abstract base class that all business...
    May 27, 2021 4 min read
  • Web ASP.NET MVC

    Building Real Applications with Telerik MVC & OpenAccess – Introduction

    Hi every one, I want to take a moment and introduce you to a series I will be writing here on Telerik blogs.  I will be creating an MVC2 application utilizing Telerik MVC extensions, Open Access, and jQuery.  The goal is to discuss real world problems that are faced when building this type of application, and to show solutions to these issues. It will start with building a model, then the DAL, and then move onto UI issues.  I will also show ways to handle large record sets with OA fetch plans/caching, and show some tips/tricks to help keep the UI...
    May 27, 2021 1 min read
  • Productivity

    OpenAccess ORM Second Level Cache API

    OpenAccess provides you not only with one, but two caches for persistent objects. The first level cache is the cache that directly supports the IObjectScope and that is responsible for the uniqueing of database references. That means, it is responsible to assure that there is only one physical instance per logical database entity: Equal foreign key reference values lead to a consistent representation in memory so that no duplicate representation of a single database row exists within an IObjectScope. This cache also holds the modified objects in a scope. The first level cache is always present and there is a...
    May 27, 2021 3 min read
  • Web

    Handling multiple database connections with Telerik OpenAccess ORM

    Very often it is necessary to work simultaneously with more than one database. In such cases it is recommended that each database is mapped to a separate class model residing in its own assembly. The object scopes that handle the persistent objects should be obtained from an instance of the Database class which represents particular database on the server. To make this process easier Telerik OpenAccess ORM generates a helper class named ObjectScopeProvider. How to benefit from this class will be described later in this post. To explain practically how to configure the Visual Studio projects, consider the case of having...
    May 27, 2021 3 min read