-
Entity Framework is a different beast in .NET 4.0 than it was in its first incarnation and it’s the strategic .NET ORM from Microsoft which means that it shows up in lots of places like WCF Data Services, WCF RIA Services, ASP.NET Dynamic Data, etc. I feel that it’s a key part of the “modern .NET stack...
-
I did a short session on the Open Data Protocol (OData) last week at the NxtGen User Group and I thought I’d share the slides here. There are quite a few builds/animations in that slide-deck so I’d suggest that downloading it will produce a better experience than viewing it on SlideShare.
-
Tantalising post from the Astoria team.
-
I produced a new set of short videos around ADO.NET Data Services and dropped them on to Channel 9. You can find them here; http://channel9.msdn.com/tags/UK and that list will grow as time goes in ( specifically, it'll grow if I can get the publishing system to publish my next 4 videos for me as it's...
-
This is similar but not at all identical to this post about LINQ to SQL because it's using a different framework and that has different capabilities. Someone mailed and asked how we can detect concurrency problems with Entity Framework in order to ensure that when we submit changes to the DB we first;...
-
Thanks to the people who came along to my talk on Entity Framework at VBUG in Bristol yesterday. I promised that I'd make the slides available and they can be found here for download in PPTX format and PDF format . This was more or less the same talk as I delivered at Southampton the week before so these...
-
Julie points to Danny and Danny points to the next CTP of Entity Framework - if you're interested in serializing the entities that Entity Framework returns back to you then you'll be interested in this; http://www.thedatafarm.com/blog/2008/03/28/HallelujahEntityGraphsWillBeXMLSerializable.aspx
-
I made a few videos about Data Services. I have plans to make a few more as well but (as always :-)) I've got distracted by something else so, for the meantime; ADO.NET Data Services - Surfacing Data ADO.NET Data Services - Querying with URI's ADO.NET Data Services - A Basic .NET Client ADO.NET Data...
-
...and followed Christian's great advice over here to get myself hosted inside of a console application; Self-Hosting Your ADO.NET Data Services ( Astoria ) Services took about 3 minutes. Now need to figure out what the heck I can do with this framework in its revised form.
-
This is just a convenience - links to the posts that I've made so far around beta 2 of the ADO.NET Entity Framework. The Overview Video Entity Framework - Overview Video Note: This is also available on my Live SkyDrive in 5 pieces if that helps. "Getting Up and Running" Posts ADO.NET Entity Framework...
-
Following the general theme of the last couple of posts ( here and here ), I thought I'd carry on and experiment with deleting. static void Main( string [] args) { using (NorthwindContext ctx = new NorthwindContext( "Name=NorthwindEntities" )) { Shippers s = ctx.Shippers.First(); ctx.DeleteObject(s);...
-
Following on from the previous post I wanted to apply a similar approach with updating data. If I go and grab the first Shippers record from my store; using (NorthwindContext ctx = new NorthwindContext( "Name=NorthwindEntities" )) { Shippers single = ctx.Shippers.First(); DumpObjectStateManager(ctx.ObjectStateManager...
-
I'll try and exercise that ObjectStateManager a little by inserting some data (and keeping it all very simple by just playing with the Shippers table). Starting with this; static void Main( string [] args) { using (NorthwindContext ctx = new NorthwindContext( "Name=NorthwindEntities" )) { ObjectQuery<Shippers>...
-
I thought I'd write a simple stored procedure and add it to Northwind; create procedure dbo.GetCustomersByCountry ( @country nvarchar(30) ) as set nocount on select c.* from dbo.Customers as c where c.country = @country And then see about calling it using ObjectQuery<T>. I added this to my Northwind...
-
The results of this query; using (ObjectContext ctx = new ObjectContext( "Name=NorthwindEntities" )) { ObjectQuery<Customers> query = ctx.CreateQuery<Customers>( "select value c from NorthwindContext.Customers as c" ); foreach (Customers c in query) { Console.WriteLine(c.Orders.Count); }...