Nach Ordnungsbegriffen durchsuchen

Alle Ordnungsbegriffe » LINQ to SQL (RSS)

Easy Data-loading with LINQ-to-SQL and LINQ-to-XML von .Net Smoothie

.Net 3.5 had some nice tricks in it. LINQ-to-XML was one of them. With the new "X"-types, you can make working with XML really easy. VB.Net 9 takes it one step further, and lets you write XML in your code without strings. "Hey Rich, that’s...

LINQ or DIE von .Net Smoothie

I just read a fantastic quote about LINQ from the book Pro LINQ: Language Integrated Query in C# 2008 by Joseph C. Rattz, Jr.: I prefer to think of LINQ as a data iteration engine, but perhaps Microsoft didn’t want a technology named DIE. I think...
Abgelegt unter: , , , ,

A Pure ASP.Net Grid with Grouping von .Net Smoothie

One of my favorite bloggers is Matt Berseth. Nearly once a week he comes up with a post where he does something amazing with the standard ASP.Net controls. I usually read his posts in awe. He’s really good. But he’s not only is a good developer...

The LinqDataSource and the Hidden Viewstate von .Net Smoothie

Yesterday I thought I’d learn about the LinqDataSource in ASP.Net 3.5, and got an interesting surprise. The new LinqDataSource can also be used with a LINQ-to-SQL model to perform updates. You simply add the DataSource to your page, set the table...

How to Update Data with LINQ-to-SQL von .Net Smoothie

When learning LINQ-to-SQL, it’s not immediately obvious how to do an update. Querying is easy, and there are methods for inserting and deleting. Updating usually occurs by modifying an object already known to the DataContext and then calling SubmitChanges...
Abgelegt unter: , , , , ,

How to See the SQL Generated by a LINQ to SQL Command von .Net Smoothie

Quick tip: If you want to see the SQL generated by LINQ to SQL for a query or command, simply set the Log property of your generated DataContext class to an instance of a TextReader. If this is your code: using System; using System.Linq; using System...
Abgelegt unter: , , , ,