ServicesResourcesConferencesOur TeamWeblogsAboutContact
   

Subscriptions

Post Categories

News

My new books

My Blogroll

INETA UG Leaders

Affiliations

News

Archives

Christian Nagel's OneNotes

.NET Training, Consulting, Coaching & Development


Twelve Core Processors in 2010
The AMD Server Workstation Roadmap lists processors with 6-core (Istanbul, 2009), and twelve-core (Magny Cours, 2010).
Parallel computing is becoming more and more important, e.g. Parallel LINQ.

Christian

posted Thursday, May 08, 2008 11:24 AM with 1 Comments

Next Generation of Data-Centric Applications with Visual Studio 2008 and SQL Server 2008
Am 5. Mai 2008 gibt es einen Tag mit Visual Studio 2008 und SQL Server 2008 in Zürich!
Next Generation of Data-Centric Applications with Visual Studio 2008 and SQL Server 2008

Durch den Tag führen Meinrad Weiss für SQL Server 2008 und ich für Visual Studio 2008.

Die Themen:

  • LINQ und C# 3.0
  • LINQ to SQL
  • LINQ to XML
  • ADO.NET Entity Framewok
und natürlich auch SQL Server 2008:
  • New SQL Statements (e.g. Merge)
  • New Data Types (Date, Large UDTs, Spatial, Filestream, HierarchyId …)
  • Resource Management
  • Change Data Capture
  • Data Profiling
  • Star Join optimization
  • Data Compression
  • Transparent Encryption
See you there!
Christian
posted Saturday, April 19, 2008 11:36 AM with 0 Comments

Professional C# 2008
Professional C# 2008 is here! It contains 1800 pages although some chapters like .NET Remoting have been removed.
The sixth edition was changed to include C# 3.0 and .NET 3.5!
All the chapters of the book were changed to the new C# 3.0 syntax. Lambda expressions can be useful in many different cases.
A big focus of the book is into .NET 3.0 and 3.5. While the previous edition had one chapter about WPF, this edition gives you a lot more information. The same is true for WCF and WF. Beside having changes in all chapters to the new C# 3.0 syntax, LINQ has some dedicated chapters: 11 - Language Integrated Query; 27 - LINQ to SQL; 29 - LINQ to XML. You can also find a preview on the ADO.NET Entity Framework in appendix A. For ASP.NET 3.5, ASP.NET AJAX can be found in chapter 39. And much more! All you need for C# 3.0 and core information about the complete .NET Framework 3.5.

posted Friday, April 18, 2008 8:17 PM with 0 Comments

SQL Server 2008 @ .NET User Group Austria
Bei der .NET User Group Austria geht's am Donnerstag, 27. März um SQL Server 2008:
usergroups.at

  • New Data Types (DATE, TIME, FILESTREAM, Spatial, HierarchyID
  • Table Valued Constructors
  • Table Valued Parameters
  • Data Compression
  • MERGE T-SQL
  • Change Data Capture
  • Delcarative Management Framework
Christian
posted Wednesday, March 26, 2008 10:46 PM with 0 Comments

XAML Intellisense in Visual Studio 2008 - Fix after installation of the Windows SDK
Writing WPF applications I prefer using the XAML editor instead of the designer. With the help of Visual Studio 2008 intellisense this can be done really quick!

Now intellisense for XAML was broken - the solution posted by Brett Kilty (a missing path to the TextMgrP COM Library): Intellisense broken in all WPF applications

Christian

posted Tuesday, March 11, 2008 10:05 AM with 0 Comments

LINQ to XSD Alpha 0.2
It took some time after the first alpha (which was available for Beta 1 of Visual Studio 2008) - now a new version of LINQ to XSD is here: LINQ to XSD Alpha 0.2

Christian

posted Friday, February 22, 2008 2:23 PM with 0 Comments

Events in Wien
Wichtige .NET Developer Events in Wien:

Christian
posted Friday, February 22, 2008 1:07 PM with 0 Comments

Enterprise Services with the .NET Framework - Japanese edition
My book Enterprise Services with the .NET Framework is now available translated to Japanese!
You can get it here: Amazon Japan

Christian

posted Wednesday, February 20, 2008 4:51 PM with 1 Comments

C# v.next
C# is a changing language. C# 1.0 was all about core component-support. With C# 2.0 generics have been added. C# 3.0 added LINQ and extensions that are very useful with LINQ such as extension methods, object initializer, collection initializer, anonymous types....

What about the next version of C#?
One important part is using of types defined by dynamic languages such as IronRuby or IronPython.

The C# team considers the keyword dynamic that's shown in the blog of Charlie Calvert: Future Focus 1: Dynamic Lookup

Christian

posted Tuesday, February 19, 2008 7:11 PM with 0 Comments

LINQ with joins
Dan Wahlin posts about LINQ and Lambdas and Sprocs... Oh My! With his post he defines a complex LINQ query to join several tables from the Northwind database:


public IEnumerable GetOrderDetails(int orderID) {
  NorthwindDataContext db = this.DataContext;
  IEnumerable orderDetails =
    from o in db.Orders
    where o.OrderID == orderID
    join s in db.Shippers on o.ShipVia equals s.ShipperID
    join od in db.OrderDetails on o.OrderID equals od.OrderID
    join p in db.Products on od.ProductID equals p.ProductID
    join supplier in db.Suppliers on p.SupplierID equals supplier.SupplierID
    let total = od.Quantity * od.UnitPrice
    select new OrderDescription
    {
      Product = p.ProductName,
      Quantity = od.Quantity,
      ShipperName = s.CompanyName,
      Total = total,
      UnitPrice = od.UnitPrice,
      SupplierName = supplier.CompanyName
    };
  return orderDetails;
}


Instead of using joins with the LINQ query expression it is also possible to use compound from and access shipper and supplier (with a * to 1 relation) directly:

public IEnumerable GetOrderDetails(int orderID)
{
  NorthwindDataContext db = this.DataContext;
  IEnumerable orderDetails =
    from o in db.Orders
    where o.OrderID == orderID
    from od in o.OrderDetails
    let total = od.Quantity * od.UnitPrice
    select new OrderDescription
    {
      Product = od.Product.ProductName,
      Quantity = od.Quantity,
      ShipperName = o.Shipper.CompanyName,
      Total = total,
      UnitPrice = od.UnitPrice,
      SupplierName = od.Product.Supplier.CompanyName
    };
  return orderDetails;
}

I think the LINQ query with compound from is the simpler one.

Christian

posted Monday, February 18, 2008 11:58 PM with 1 Comments

Resizing the Main Window of WPF Applications
If the main Window of an WPF application should automatically be sized to its content, setting the Width and Height properties to Auto does not help. With this setting the Window gets a default height and width. To resize the main window to its content, the property SizeToContent can be set. If the Height and Width properties are set as well to Auto, the Window gets resized dynamically as the size of the content changes.

<Window x:Class="SizingTest.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Width="Auto" Height="Auto" SizeToContent="WidthAndHeight" >
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto" />
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Label Margin="5" Grid.Column="0" Grid.Row="0">Value 1:</Label>
    <Label Margin="5" Grid.Column="0" Grid.Row="1">Value 2:</Label>
    <Label Margin="5" Grid.Column="0" Grid.Row="2">Value 3:</Label>
    <TextBox Margin="5" Grid.Column="1" Grid.Row="0" MinWidth="100" />
    <TextBox Margin="5" Grid.Column="1" Grid.Row="1" MinWidth="100" />
    <TextBox Margin="5" Grid.Column="1" Grid.Row="2" MinWidth="100" />
  </Grid>
</Window>

Christian

posted Tuesday, January 01, 2008 9:05 PM with 1 Comments

SWF to XAML
From time to time I'm asked if there's a SWF to XAML conversion tool. From Tim Sneath's blog: The Converted.
It convert's Flash animations to the XAML format.

Christian

posted Thursday, October 25, 2007 3:32 PM with 1 Comments

LINQ to XSD
Scott Hanselman likes the VB 9 support of integrating XML in the language. That's why he found a way to create mixed language assemblies.
Another option to get strongly typed XML support to C# is by using LINQ to XSD. Using this is there still an advantage with the VB9 syntax?

Christian

posted Monday, October 08, 2007 8:29 AM with 0 Comments

200 Years Wiley
This year, Wiley celebrates 200 years. Wiley is the publisher of my books Professional C# 2005 with .NET 3.0 and Beginning Visual C# 2005.
With some books it's still interesting to read them after 200 years. The earliest surviving book from Wiley is from the year 1812, from William Ballantine. The books I've written have a sligthtly shorter shelf life given the rapid pace of technology! That's why I'm already working on the next editions:
  • Professional C# 2008
  • Beginning Visual C# 2008

Christian
posted Thursday, October 04, 2007 1:17 PM with 0 Comments

Source Code for the .NET Framework
Microsoft releases the source code of the .NET Framework! See ScottGu's Blog, Releasing the Source Code for the .NET Framework Libraries!

Christian

posted Wednesday, October 03, 2007 7:28 PM with 0 Comments


Powered by Community Server, by Telligent Systems