LINQ to SQL

LINQ to SQL is an API that allows querying relational databases. The samples in this post are based on the concepts of: Entity classes (which are instances of Entity Types). Such a class is a regular .NET class that is decorated with the attribute Table and its properties and fields with the attribute Column DataContext,…

LINQ Presentation and Demos Available for Download

On Saturday, April 22, I delivered a presentation on LINQ at a meeting of the RONUA community in Timisoara. The presentation was focused on sample codes for LINQ to Objects, LINQ to XML and LINQ to SQL. Today I uploaded on the site the presentation and demo programs so that you can download them. Here…

Resource Header Problem in Orcas March CTP

In a previous post I explained than when you create a MFC application with the March CTP of ‘Orcas’ and add a command or split button to a dialog, the .rc file is not compiled, because styles such as BS_COMMANDLINK are not found. My workaround for the moment was to redeclare them in the resource.h…

LINQ to XML

LINQ offers an API called LINQ to XML, formally known as XLinq, that provides support for working with XML. This API resides in the System.Xml.Linq namespace, and you need to add a reference to the assembly with the same name to be able to use it. If you installed the Orcas March CTP bits, the…

RONUA meeting, Timisoara, April 21, 2007

Since this is a local event, I’ll continue the post in Romanian. Sambata, 21 Aprilie 2007, la ora 09:00 are loc intalnirea membrilor Ronua din Timisoara, la LTHD Corporation, str. Ardeal, Nr. 70. Agenda evenimentului este: 09:00 – 09:10 – Intro si networking 09:10 – 10:10 – Introducere in LINQ Marius BANCILA, MVP VC++, SiemensVDO Automotive…

yield keyword and lazy evaluation in C#

yield is a new contextual keyword introduced to C# 2.0, vital for lazy evaluation and the performance of queries in LINQ. Being a contextual keyword means that yield can be used as a variable name in C# without any problem. When put before return it becomes a keyword. yield allows one enumerable class to be…

Romanian Mint Rubbing Association

I just came across this great site, http://www.mintrubbing.org/, the “official site” of Romanian Mint Rubbing Association. Mint rubbing is: mint rubbing (from Romanian “a freca menta”) – time and life management technique developed in Romania and practiced by millions of people worldwide. This site is dedicated to provide you all the resources need to put…

Visual Studio Trivia: size of VS IDE and documentation

Have you ever wondered how many words the Visual Studio IDE has? Or how many words are in the documentation? Well, according to Fabrice Fonk from the MSDN DevWiki project, the numbers are: 1 million words for the IDE over 50 million words in the documentation You can hear it from himself in this video.

LINQ: declarative and functional syntax

In my last post about LINQ I shown you an example about how to use the language integrated query to select information about directories. In this post I’ll get more into the syntax and show you something about the functional querying style. My examples will focus on displaying information about UEFA Champions Leage winners. Thus,…

Customize autoexp.dat for own types in VS2005

Suppose you have a class foo like this:

And you have a variable f(1, 2, 3) what you watch in your Watch window. The window looks like this: The field Value shows a default expansion of the object, {X=1 Y=2 Z=3}. However, this can be changed by modifying a file called autpexp.dat, located in…