LINQ to SharePoint ready for Orcas Beta 2

image Last week, Microsoft shipped Orcas Beta 2; today, the Visual Studio SDK that goes with it was released as well. Ready for us to move LINQ to SharePoint to Orcas Beta 2. More specifically, the query provider core was changed slightly to adapt the new IQueryProvider/IQueryable interface split and a few adjustments were made concerning Visual Studio 2008 integration. If you can't wait any longer, you can download the latest sources over here. Or just wait another few days for a new release that targets Orcas Beta 2 together with some new features.

What can you expect from the next interim release?

  • SPML has been extended and can now map lists, fields and choices on (Multi)Choice fields.

    image
  • The LINQ to SharePoint Entity Wizard is fully layered on top of the entity generator and supports enhanced list and field mapping (including the ability to set aliases on mappings to make the generated classes more user-friendly). It also support list name (English) depluralization (see below):

    image  image image image
  • SpMetal enhancements:

    image
    • Full support for SPML using two times two modi: online and offline; export and codegen (but offline-export isn't meaningful). So you can do things like this:
      • Online - export: generate an SPML file for the specified list + optional context
      • Online - codegen: generates C# or VB code for the specified list + optional context (internally, it first generates the corresponding SPML)
      • Offline - codegen: takes an SPML file as the input and generates C# or VB code for it; this allows people to export SPML first (online-export), modify it and then generate code out of it
    • List name (English) depluralization. E.g. a list called Products will create an entity called Product, a list called Categories will create an entity called Category, etc.
  • Grouping support. That's right, you can now write things like:

    var res = from s in ctx.Suppliers group s by s.Country;

    -or-

    var res = from s in ctx.Suppliers group s by s.Country into g select g;

    and iterate over the results as follows:

    foreach (var g in res)
    {
       Console.WriteLine(g.Key ?? "(null)");
       foreach (var s in g)
          Console.WriteLine("- {0}", s.CompanyName);
       Console.WriteLine();
    }

    image image  

There's more to come, so stay tuned!

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Published Wednesday, August 01, 2007 5:09 PM by bart
Filed under:

Comments

No Comments
Powered by Community Server (Non-Commercial Edition), by Telligent Systems