LA.NET [EN]

November, 2009Archive

Nov 09

Getting started with the AdoNetDataContext

Posted in Javascript, MS AJAX       Comments Off on Getting started with the AdoNetDataContext

Today we’re going to start looking at the AdoNetDataContext. This class expands the DataContext object and uses several specific methods for ensuring the correct interaction with an existing ADO.NET Data Service. These internal methods added by the AdoNetDataContext are essentially used in identity related operations. In other words, it extends the base DataContext class by […]

Read the rest of this entry »

Nov 08

Microsoft Application Architecture Guide

Posted in Architecture       Comments Off on Microsoft Application Architecture Guide

I’m putting this here for future reference.

Read the rest of this entry »

Nov 08

Book review: the design and evolution of C++

Posted in Books       Comments Off on Book review: the design and evolution of C++

I’ve just finished re-reading (I’ve read if for the first time around 2000) this fantastic book which was written by Bjarne Stroustrup, who is the responsible for the design of C++. I haven’t used C++ professionally for over 6 years now! However, I’ve always been fascinated for its power and complexity and I do intend […]

Read the rest of this entry »

Nov 08

The DataContext component: creating entities

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: creating entities

Before we can move on and take a look at the AdoNetDataContext component, we need to talk about one more topic: creating entities and how it might be integrated with DataContext component. The DataContext exposes a createEntity method which can be used for  creating new objects of a specific type. Internally, that method will always […]

Read the rest of this entry »

Nov 07

The DataContext component: deferred properties

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: deferred properties

Today we’ll keep looking at the DataContext component and we’ll see how it supports deferred properties. Deferred properties are properties which are lazy loaded as “needed”. Using deferred properties means that the component will try to make a remote call for getting the value of that property. As you’re probably expecting, this means that you’ll […]

Read the rest of this entry »

Nov 06

Crash dumps, ASP.NET and VS 2010

Posted in ASP.NET       Comments Off on Crash dumps, ASP.NET and VS 2010

Pretty cool stuff!

Read the rest of this entry »

Nov 05

The DataContext component: linking objects

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: linking objects

Today we’ll keep going in our study of the DataContext component and we’ll see how we can establish relationships between objects through links. I guess you’re probably asking something like: “Hum…establishing relationships between objects…how about using properties?” For instance, suppose we’re working with person and contact instances from the previous post…We can say that a […]

Read the rest of this entry »

Nov 05

Regular expressions and JavaScript – part II

Posted in Javascript       Comments Off on Regular expressions and JavaScript – part II

In the previous post, we’ve seen that we can build regular expression objections through a constructor ( RegExp) or by using a literal (/…/). Today I thought I’d be writing some code for illustrating the use of regular expressions. However, I think I’ll concentrate on MS AJAX and I’ll point you to this site if […]

Read the rest of this entry »

Nov 04

Regular expressions and JavaScript

Posted in Javascript       Comments Off on Regular expressions and JavaScript

After writing my last post on getting style properties from JavaScript, I’ve noticed that I still haven’t written anything about JavaScript and regular expressions…and that’s why I’ll be writing a couple of posts on this topic. Before going on, a disclaimer: I’m not really an expert on regular expressions (do note that people have written […]

Read the rest of this entry »

Nov 04

Getting the CSS display value: there’s more to it than you might think at first

Posted in Javascript       Comments Off on Getting the CSS display value: there’s more to it than you might think at first

Well, I’m spoiled… that’s what happens when you use frameworks like JQuery…Everything is good until that one day…someone says something stupid: “I need you to write some JS code but I don’t want external references on JQuery!”. Yep, I thought exactly the same thing: WTF??? “Now, that we’re clear on external frameworks, can you please […]

Read the rest of this entry »

Nov 04

In the previous post, we’ve started looking at identity and how it’s supported by the DataContext component. Today we’ll improve the initial algorithm so that we’re able to support more advanced scenarios. Even though the first algorithm for identity management was really simple, it ended up showing that identity management ends up adding (at least) […]

Read the rest of this entry »

Nov 03

The DataContext component: getting started with identities

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: getting started with identities

We’ve already met several interesting features of the DataContext component. Today we’ll keep going and we’ll start discussing identity. I’m not sure if you’ve noticed, but the DataContext exposes several identity related methods. For instance, the getIdentity method is used by the control to get the identity of an object. In order for you to […]

Read the rest of this entry »

Nov 02

The DataContext component: Committing changes – take II

Posted in Javascript, MS AJAX       Comments Off on The DataContext component: Committing changes – take II

In the previous post, we’ve seen how easy it is to commit the changes that are buffered by a DataContext instance. At the time, I said that there were still a couple of things related with the saveChanges method that needed further discussion…and that’s what we’ll do in this post. To illustrate one scenario you […]

Read the rest of this entry »

Nov 02

Ok, we’ve already seen one option for fetching data from a remote web service. In this post, we’ll see how to commit changes tracked by the DataContext component. Committing buffered changes means that you’ll need to set (at least) two DataContext instance properties: serviceUri and saveOperation. serviceUri identifies the URI of the web service that […]

Read the rest of this entry »

Nov 02

Until now, we’ve met some of the basic features introduced by the DataContext component. As I’ve said, you can think of this control as a buffer which keeps track of changes performed to several items it keeps track of. We’ve already seen that we can use the trackData method for initiating a tracking operation. What […]

Read the rest of this entry »

Nov 02

The DataContext class: cancelling changes

Posted in Javascript, MS AJAX       Comments Off on The DataContext class: cancelling changes

In the previous post, we’ve see how to execute some basic actions over a DataContext instance. In this post we’ll keep looking at the it and we’ll see the available options for working with changes made over the data tracked by the control. Before getting started, we’ll assume that _ctx references an existing DataContext object […]

Read the rest of this entry »