• A simpler ObjectKey

    Monday, March 21, 2011 by OpenAccess ORM Team | Comments 9

    As existing users might have experienced , handling the identity of a persistent object in OpenAccess can get complicated at times especially when it comes to a type with composite identity fields. With an aim to simplifying this aspect we worked on the ObjectKey API to make it easier to comprehend and to use. This blog post describes the API in brief, it’s intended usage and how existing code can be migrated.

     

    The ObjectKey

    The ‘ObjectKey’ is the new entry point for working with a persistent object’s identity. The ‘ObjectKey’ for a persistent object can be obtained form the runtime or if...

  • I want to introduce you another cool feature for the RadTreeList which is available into the new Q1 2011 release of RadControls for ASP.NET AJAX. With the new version the RadTreeList provides functionality for displaying summaries/results from aggregates in the footer item. The type of this footer item is TreeListFooterItem. To enable this functionality merely set the ShowFooter property of the respective RadTreeList instance to true (its default value is false). The TreeListFooterItem is most commonly used to visualize calculations from aggregate functions within the scope of the current level:

    Aggregates first look

    In order to specify how the aggregates will be evaluated, specify in every RadTreeList column which have the Aggregate property one of the option...
  • Hello everyone!

    Q1 2011 has just been released and with it comes for the first time the RadTimeBar. Time Bar is a time bound DataVisualization control whose main purpose is to allow lightweight scrolling, navigation, and selection through large periods of time. To ease visualization the timebar can divide the displayed timespan in predefined periods like years, quarters, months, weeks, days, etc. While showing periods of time divided in weeks can be fun, it becomes really useful when combined with another great product that allows quick data visualization – the RadSparklines

    clip_image002

    In addition to visualizing data, the RadTimeBar control allows you...

  • When you create a mock using Mock.Create<> or Mock.Create there are three Behavior modes available. Each one causes the mock to behave in very different ways. For those of you new to mocking, you may not know at first what each of these behaviors means; so let’s take a look!  

    In these examples I will be testing a method that retrieves a UserProfile, it looks like this:

    public UserProfile GetUserProfile(User user)
          {
     bool foundUser = false;
     
     using (var connection = new SqlConnection(connectionString))
              {
     using (var command = new SqlCommand("SELECT * FROM Users WHERE UserName =@userName'", connection))
        ...
  • Hi all,

    My name is Radoslav Kirilov and I am developer at one of Telerik's ASP.NET teams.

    I want to introduce you the new RadMonthYearPicker control which is available in the new Q1 2011 release of RadControls for ASP.NET AJAX. RadMonthYearPicker is a flexible component that allows the user to select month and year and to display that month/year in the specified format and culture.

    RadMonthYearPicker first look

    RadMonthYearPicker is a part of the RadCalendar suite and it has most of the properties introduced into the RadDatePicker. Below are listed the most important of them:
    • MinDate, MaxDate - the control will not accept dates beyond the specified range.
    • DisplayDateFormat - Customize the display month/year...
  • In the context of our 30th release I am happy to share even more good news with you. With the official Q1 2011 release we have enriched the developer toolbox with the new RadDataForm.In the tradition of our existing data-aware controls such as RadGridVIew, RadDataForm deals with data in easy and intuitive  way. It provides complete CRUD support over an object or a collection of objects taking care of adding, editing, deleting and navigation trough collections. We had the RadGridView to take care of tabular views and now we have RadDataForm to take care of scenarios where form layout is more...

  • Starting with the 2011 Q1 release, OpenAccess supports development of applications that involve geometric or geographic data. For the sake of simplicity, this blog will focus on the use of SqlGeography with MSSQL 2008. Other databases (like Oracle) provide support for geometric and geographic data as well, but this shall be the topic of another blog post.

    Let's start with a simple model that has only two domain classes City and Country. Both classes should contain geographic information: the location of the City (as a point) and the polygon shape of the Country. Both domain classes then...

  • We hear a lot that migrating projects using OpenAccess to a new OpenAccess version is a complicated process. The first decision should be if you want to migrate each of your projects or if you want to stay for some of them with the old OpenAccess version.

    This post describes how to prepare your project so that an installation of a new OpenAccess version does not break your build or makes it necessary to use the new version in your older projects.

    The first step is to check-in all necessary runtime and compile time used resources instead of taking them from the...

  • We are proud to announce the first major release of RadControls for WinForms for this year, where we worked towards expanding and optimizing the whole suite.

    To start off, I can say that we introduced a fully refurbished RadTreeView control with new UI and data layers which allow it to bind several times faster!

    treeview

    Of course, we are trying not only to optimize the existing products, but to offer new components in the suite as well. By popular demand, we developed a brand new control that helps you break a complex process into separate steps – RadWizard. Additionally, in the spirit of...

  • As the market and Windows Phone 7 are getting bigger so do the RadControls for WP7.

    Q1 2011 marks the first official release of Telerik’s RadControls for Windows Phone 7. The suite has grown up to 20 controls built from the ground up for the Windows Phone 7 Operating System to deliver new user experience based on content and motion, complying with all Metro design patterns.

    Combining Telerik’s expertise in Silverlight development and the capabilities of the Windows Phone platform, RadControls for Windows Phone 7 are super light and blazing-fast controls for building mobile applications.

    Amongst these 20 controls you can find...