in
tri
home of the trivadians

Nach Ordnungsbegriffen durchsuchen

  • Entity Framework V2 day one

    i think this and this is good news: MS takes a second try to make the ADO.NET Entity Framework a really good product that helps developers to create a data access layer with a clean object model. This time, the community will be involved to help make the framework ready for the challenges of "real...
    Erstellt in Michael Könings Blog (Weblog) von admin am 06-24-2008
  • Easy Data-loading with LINQ-to-SQL and LINQ-to-XML

    .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 old news," I hear you say. "And who’s...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-20-2008
  • Design Guidelines for LINQ

    Have you wondered if and when you should use the new LINQ features in .Net 3.5? Like, where should I put a new extension method? Should I use Func<T> or a custom delegate? How do I best implement a mix-in (extension methods on an interface)? Well, Mircea Trofin has just published a new draft...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-13-2008
  • LINQ or DIE

    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 they already built the technology for such a product...
    Erstellt in Richard's blog (Weblog) von Anonymous am 03-03-2008
  • The LinqDataSource and the Hidden Viewstate

    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 name, and set EnableUpdate to true. Then, using...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-21-2008
  • How to Update Data with LINQ-to-SQL

    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 on the context. var product = (from p in...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-18-2008
  • How to See the SQL Generated by a LINQ to SQL Command

    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.Data.Linq; namespace LINQtoSQLConsole { class...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-14-2008
  • How to Use Grouping in C# LINQ Syntax

    When you started using LINQ, did you think it looked like SQL? I did. The more I learned LINQ, the more I realized it wasn’t anything like SQL. Take grouping, for example. Because LINQ has a group by statement, and it looks like SQL, I assumed that the syntax for grouping in LINQ would be just...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-08-2008
  • LINQ to DataSets - the Missing Manual

    Last week I had to prepare a small presentation for a new LINQ workshop. For my research, I browsed through the MSDN documentation on LINQ where I came across a reference to “LINQ to DataSets”. I couldn’t find any more information about it though, and so LINQ to DataSets got a small...
    Erstellt in Richard's blog (Weblog) von Anonymous am 02-04-2008
  • How-To: add geographical information to IIS log files with LINQ

    LINQ in action: a real life problem, solved with a few lines of easy-to-read code. In my last post, I promised to provide a solution to enhance the information we can derive from IIS logs with the help of Log Parser. All you need is the free Geo-IP database (updated frequently) that can be found here...
    Erstellt in Michael Könings Blog (Weblog) von admin am 01-23-2008
Seite 1 von 2 (15 Treffer) 1 2 > Weiter
/