We are very excited to announce that .NET 3.5 SP1 Beta 1 and Visual Studio 2008 SP1 Beta 1 are now available!
This beta marks the entry of the ADO.NET Data Services Framework as well as the ADO.NET Entity Framework as part of the overall .NET/Visual Studio product and will be the final beta before the RTM of both technologies.
The remainder of this post will cover the changes and additions to the ADO.NET Data Services Framework since the last CTP in Dec 07. The
Since our last CTP in Dec 2007 along with the ASP.NET 3.5 Extensions Preview, there have been a number of changes and added features. I'll try to summarize the changes and features below. We'll follow up as we go with some more details on the changes and what to expect post Beta 1.
Changes:
1: [QueryInterceptor("ProductCategory")]
2: public Expression<Func<ProductCategory, bool>>
OnQueryProductCategory()
3: {
4: return (pc) => pc.Name.StartsWith("B");
5: }
Features:
We look forward to your feedback...
-Mike Flasko
Program Manager, ADO.NET Data Service Framework
So I guess there still aren't any options for getting total record count when doing paging, eh? Doesnt seem like that functionality is going to make it into 1.0 at all. I just really cant understand how something that seems like such a core requirement to me isnt going to be addressed for the 1.0 release. Maybe I'm the only one that thinks its required and everyone else is OK with doing next / prev paging solutions. Ah well.
Eric: you can be sure we had long serious conversations about this...however, our focus is on ship soon, ship often. There will be always more features that we'd like to add. We prefered to deliver this version of Astoria as part of SP1, and then in the next iteration we'll include a number of the things that didn't make this time around. For this case we thought that next/prev was "good enough"...I understand that it's not perfect for everybody.
-pablo
The news are out. The ADO.NET Data Services Framework (Astoria) and the ADO.NET Entity Framework will
Quick question - is there any reason why Astoria won't work with AdventureWorks 2008 sample database? I can get it to recognize some tables (Person.EmailAddress, Production.Product), but not others (Person.Person, etc.) I haven't found a pattern yet - am I missing something? Thanks.
Mike: do you see any messages in the VS errors/warnings/messages window when you point the Entity Data Model wizard to the database and click finish?
I can't locate the Entity Data Model wizard in VS 2008. I tried adding a LINQ to SQL classes object and it picks up varying tables. How do I access the wizard? Thanks for the help
Ahh... Don't you love the smell of fresh software in the morning? Yes, this is why I've gone silent for
Mike: assuming you installed SP1 beta 1, the EDM wizard pops-up when you do File -> Add New Item and choose the "ADO.NET Entity Data Model" item template. The wizard will guide you through the rest of the process.
As for the LINQ to SQL case, one thing that might be happening is that not all the tables may result in CLR types that follow the Astoria default convention for key properties, so you may need to use the DataServiceKey attribute to indicate which properties should be treated as keys on each table (at least each table that didn't show up). DataServiceKey is a class-level attributes to enable these scenarios, you can use a partial class to put the attribute and pass the name(s) of the key property.
Thanks Pablo, there's currently no "ADO.NET Entity Data Model" item template showing up. I do have .NET 3.5 SP 1 beta 1 and VS 2008 SP 1 beta 1. I'm uninstalling and reinstalling both now. I'll have a look at the data types for the tables it's not pulling via LINQ to SQL Classes, but the tables I'm pulling don't appear to have any of the new 2008 data types in them. I'll have a closer look and get back to you. BTW, the LINQ to SQL Classes method appears to work great against SQL 2005. Thanks again for the help.
Microsoft .NET framework 3.5 Service Pack 1 and Visual Studio 2008 Service Pack 1 now have public BETAs
Hi Pabloc, it looks like uninstalling and reinstalling the SP betas did the trick. Now I have the "ADO.NET Entity Data Model" template in the File > New > File ... menu option. Thanks for the help!
こんにちは、こだかです。 以前から、お話していました、Visual Studio 2008 & ,NET Framewoork3.5 SP1 Beta1がリリースされました。 ( http://msdn.microsoft.com/ja-jp/vstudio/cc533448(en-us).aspx
Hi!
Thanx for the new stuff! Is entity polymorphism scenario supported in this release? I've noticed that the .OfType<T>() query operator isn't. I hope this will be a v1 feature because my entity models heavily relies on inheritance.
Visual Studio 2008 & .NET Framework3.5 SP1 Beta1がリリースされました ということで、SP1のベータ版がリリースされてます。 これにはいろいろな機能拡張が含まれてますね。...
Re: polymorphism, yes, Data Services can include schemas that use inheritance. OfType<T> should work if used within the limitations of queries translatable to URLs. What is your scenario? What error do you get?