Programming

Attention: open in a new window. PDFPrint

Stepping into LINQ to SQL

Last Updated on Tuesday, 22 September 2009 13:03 Tuesday, 22 September 2009 11:36

A great capability of LINQ is that it makes it possible to use several datasources like SQL or XML the same way as List and Array elements for queries. This allows easy encapsulation of the datasource behind. Setting up LINQ to use an Microsoft SQL Server 2008 datasource is very straightforward. There are several ways to setup a project to use LINQ to SQL. The easiest way is using the O/R-Designer to create the LINQ to SQL classes.

Lets assume, we created a new database called "linqdemo" on our SQL Server and we use the following script to create our database and fill it with some information:

Read more: Stepping into LINQ to SQL

 
Attention: open in a new window. PDFPrint

Some LINQ Experience

Last Updated on Tuesday, 22 September 2009 13:29 Tuesday, 22 September 2009 09:48

As my girlfriend asked me to write her a little application that should use auto completion on a textbox, I started playing around with LINQ yesterday and decided to post a little article that might help you to understand what LinQ is and show some exaples, how you might use it. As a start, lets quote what Microsoft says about LINQ:

"LINQ is a set of extensions to the .NET Framework that encompass language-integrated query, set, and transform operations. It extends C# and Visual Basic with native language syntax for queries and provides class libraries to take advantage of these capabilities."

The Idea behind LINQ is nothing really new as there are several technologies out there doing equal things like hibernate and so on. New is, that the LINQ-syntax is directly integrated into the syntax of the source language. This is something no other language provides like this. LINQ allows you to write queries on datastructures and datasources directly into your sourcecode and keeps your sourcecode clear. It also allows easy encapsulation of datasource types as you use a high level interface to access SQL databases (for example).

Read more: Some LINQ Experience

   
Attention: open in a new window. PDFPrint

First steps into Networking on .NET micro

Last Updated on Friday, 04 September 2009 14:11 Friday, 04 September 2009 13:38

I will not yet show, how you could send data over your network connection on your .NET micro device in this article, but I will describe, what steps to perform to setup networking on the device and how to read out information about your network devices. At first you might want to know, that I own a Tahoe II Rev 1.0 board from devicesolutions.net, so this article is based on this device, but should work with any other device as well.

Now, lets start.

Read more: First steps into Networking on .NET micro

   
Attention: open in a new window. PDFPrint

.NET Micro Framework on non-english Visual Studio

Last Updated on Friday, 28 August 2009 14:48 Friday, 28 August 2009 14:20

I recently tried to use the .NET Micro Framework v3.0 on a german Visual Studio 2008. The problem is, that the setup is designed to work with the english version only, so you will not be able to see the template plugins in a non-english version. This is, how you get it running.

First, follow the instructions in the readme.txt shown after installing the framework. It says, that you need to copy the files from

Read more: .NET Micro Framework on non-english Visual Studio

   
Attention: open in a new window. PDFPrint

Using COLLADA DOM

Last Updated on Friday, 04 September 2009 12:40 Tuesday, 18 August 2009 14:10

Using the COLLADA DOM libraries is straight forward, if you know, where to start. So I will give a little example, how to load a .dae-file and how to locate some information inside the dom tree. First of all, we have to include COLLADA into our C/C++ file using the following includes:

#include <dae.h>
#include <dom/domCOLLADA.h>

We extend our application by a little main method that loads a .dae-File. If you need a .dae-file

Read more: Using COLLADA DOM

   

Page 2 of 2