Welcome to Mike Taulty's Weblog Sign in | Join | Help

August 2007 - Posts

Just a bit of a "plug". The chaps from Black Marble are being kind enough to host MSDN events in Leeds and I'm going there on the 20th September with Martin to talk about .NET Framework V3.0 and .NET Framework V3.5. You can find details of the event here Read More...
The SQLBits Community Day Registration Site is now open for you to register to attend the event on the 6th October at Microsoft Campus down in Reading. You can also take a look at the sessions and vote for the 10 that you would most want to see and that Read More...
System.AddIn in Framework V3.5 is about building hosts that load plug-in Add-Ins with functionality around discovery, isolation and lifetime management. It also tries to deal with the thorny problem of versioning one or both ends of the host<->addin Read More...
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 Read More...
I'm fairly poor at 3D. I was optimistic when WPF came along because I felt it might suddenly turn me into "3D guy" but it didn't (it was, perhaps, asking a lot :-)). I can just about sit down and produce a mesh that defines a plane or (once) I managed Read More...
I tried to build a WPF XBAP that called a WCF service from its partially trusted environment using VS 2008 Beta 2 and managed to make it work but there's a bit in the docs that you need to read if you're playing with this stuff. I don't have an online Read More...
How would you get the Entity Framework to map inserts, updates, deletes through a stored procedure layer rather than dynamically asking the underlying provider to generate INSERT/UPDATE/DELETE statements? I was about to write some code when I came across Read More...
I was just trying to build a default EDM from the Northwind database with this wizard; and every time I got to the page above it simply exited (i.e. disappeared). I figured that I must have broken it but then I've been messing around with SQL Compact Read More...
I've been missing the ability to use Outlook in order to send/receive Live Mail for quite a while. You used to be able to do that at one time and then I think the service changed so that you couldn't. Regardless, it's back and I'm really pleased to see Read More...
This is the first time I tried this since getting VS 2008 Beta 2 and I can't see many blog posts out there on it (i.e. I searched for help and didn't find any) so I thought I'd share. Using Beta 2, I began a new Office project - went for Excel as Excel Read More...
In Beta 1 of Fx3.5, the WorkflowServiceHost had a simple property on it called Runtime that got you to the WorkflowRuntime . Easy :-) I was just trying to move some code from B1 to B2 and realised that this property had gone and, fortunately, found this Read More...
How do transactions play with the Entity Framework? As a starting point, if I do something like; static void Main( string [] args) { using (NorthwindContext ctx = new NorthwindContext( "Name=NorthwindEntities" )) { foreach (Shippers s in ctx.Shippers) Read More...
If we're going to be updating or deleting records in the database then we probably care about concurrency. What happens if we've got code like this; static void Main( string [] args) { using (NorthwindContext ctx = new NorthwindContext( "Name=NorthwindEntities" Read More...
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 Read More...
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 = Read More...
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( Read More...
When you look at an ObjectContext (or something derived from it) in the Entity Framework you'll spot that it has a property on it called ObjectStateManager which is of type ObjectStateManager . This type is vital to making object services work beyond Read More...
Following up on that previous post where I managed to execute a stored procedure and get an EntitySet of Customers back from Northwind, I figured that the next thing to try would be a stored procedure that returns multiple result-sets. However, I don't Read More...
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 Read More...
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 Read More...
When you use edmgen.exe with /mode:FullGeneration or /mode:EntityClassGeneration you get a file emitted with a bunch of generated code in it. In particular, that generated code contains a class derived from ObjectContext (such as NorthwindContext ) and Read More...
In the previous post I said that when we are using ObjectQuery<T> we are actually querying the "O-Space" or object-space and that ability to query is being driven by metadata that describes how to turn the O-Space into the conceptual or C-Space Read More...
We can define a query as in; using (ObjectContext ctx = new ObjectContext( "Name=NorthwindEntities" )) { ObjectQuery<Customers> query = ctx.CreateQuery<Customers>( "select c from NorthwindContext.Customers as c" ); } But, this doesn't execute Read More...
I've written a few bits and pieces about EntitySQL and how you can use that from the perspective of just crufting up an EntityCommand , setting the command text and then going ahead and executing it to get a IDataReader and then enumerating that. However, Read More...
Returning back to that list that I talked about in a previous post , we had ANYELEMENT , CREATEREF , DEREF , IS OF , KEY , MULTISET , NAVIGATE , OFTYPE , OVERLAPS , Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Returning back to that list that I talked about in a previous post , we had ANYELEMENT , CREATEREF , DEREF , IS OF , KEY , MULTISET , NAVIGATE , OFTYPE , OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Returning back to that list that I talked about in a previous post , we had; ANYELEMENT , CREATEREF , DEREF , IS OF, KEY , MULTISET , NAVIGATE , OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Going back to that previous post about playing with the Shippers table, I thought I'd see how much easier it was to produce a little inheritance hierarchy in the designer. I started off by altering my Shippers table as before; alter table shippers add Read More...
In order to look at the next keywords that I wanted to look at (IS OF, OFTYPE, TREAT) I need to introduce some kind of inheritance. I modified my Shippers table in Northwind to try and model inheritance using the table-per-hierarchy model (it's not the Read More...
Returning back to that list that I talked about in a previous post , we had ANYELEMENT , CREATEREF , DEREF , IS OF, KEY , MULTISET , NAVIGATE , OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Returning back to that list that I talked about in a previous post , we had ANYELEMENT , CREATEREF , DEREF , IS OF, KEY , MULTISET , NAVIGATE, OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Returning back to that list that I talked about in a previous post we had ANYELEMENT , CREATEREF , DEREF , IS OF, KEY, MULTISET, NAVIGATE, OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT (including Read More...
Returning back to that list that I talked about in a previous post , we had ANYELEMENT , CREATEREF , DEREF , IS OF, KEY , MULTISET, NAVIGATE, OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF , ROW , SELECT Read More...
Returning back to that list that I talked about in a previous post we had ANYELEMENT ,CREATEREF, DEREF, IS OF, KEY, MULTISET, NAVIGATE, OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF, ROW , SELECT (including Read More...
Returning back to that list that I talked about in a previous post , we had; ANYELEMENT,CREATEREF, DEREF, IS OF, KEY, MULTISET, NAVIGATE, OFTYPE, OVERLAPS, Projection (including here as I've not yet figured out what it is :-)), REF, ROW , SELECT (including Read More...
Following on from a previous post and looking at the reference for Entity SQL, there's a lot that's familiar. Quickly copying the keywords out of the help file there are unary and binary operators such as; - (Negative) - (Subtract) != (Not Equal To) % Read More...
Wanting to play with eSQL a little made me want to find a generic way of executing a query and viewing the results so I knocked together a Windows Forms application that would do that. Note, this was only really the results of a few minutes of playing Read More...
If you're poking through the Entity Framework at the level below objects where you just want to execute queries and get a resultset back then you might spot that, whilst you can find EntityConnection, EntityCommand, EntityDataReader I don't think you'll Read More...
Having managed to get to SSDL, CSDL and MSDL files for my Northwind database it's perhaps time to do something with them. Note that this is still just using the default 1:1 mapping that the toolset has given me. I took the three files that the edmgen.exe Read More...
A small word of warning - if you're playing with the Entity Framework and the designer support inside of Visual Studio 2008 Beta 2 then I think it's probably easier to install SQL 2005 rather than SQL 2008 because, from experience, you might hit some Read More...
Similar to the previous post , there's a mechanism inside of Visual Studio for generating a model without having to drop out to the command line and use edmgen.exe to do it. Inside, of my VS project I can do "Add New Item" and select "ADO.NET Entity Model"; Read More...
As a "Hello World" thing to do, I went ahead and built a new console application in Visual Studio 2008 and then added references to the Entity Framework ( System.Data.Entity.dll from the GAC). I then went off to build myself a model, I didn't want to Read More...
If you're keen to get a firm grasp on what the three "files" that drive the Entity Framework look like then you'll perhaps find no more definitive place than in the resources of the assembly; System.Data.Entity.dll if you open it up with Reflector then Read More...
If you're keen to get a firm grasp on what the three "files" that drive the Entity Framework look like then you'll perhaps find no more definitive place than in the resources of the assembly; System.Data.Entity.dll if you open it up with Reflector then Read More...
If you're keen to get a firm grasp on what the three "files" that drive the Entity Framework look like then you'll perhaps find no more definitive place than in the resources of the assembly; System.Data.Entity.dll if you open it up with Reflector then Read More...
I installed the new version of the Entity Framework . The Framework looks to install a couple of assemblies - System.Data.Entity.dll and System.Data.Entity.Design.dll. System.Data.Entity.dll is the more interesting bit (to me :-)) as it looks to contain Read More...
With the release of new bits for the Entity Framework I thought I'd have a try at making a relatively short video providing an overview. The video is linked from the picture below; For those of you brave enough to give it a viewing I'd strongly recommend Read More...
I happened to be browsing the MSDN download centre and noticed that new bits have been added to the MSDN download centre for the ADO.NET Entity Framework. It looks like the runtime download is here; http://www.microsoft.com/downloads/details.aspx?FamilyID=F1ADC5D1-A42E-40A6-A68C-A42EE11186F7&displaylang=en Read More...
Via Phil , if you're going to MIX UK (which is approaching fast) then check this out too - it's the Backnetwork for delegates which you join by registering on the left hand side (highlighted below); Oh, and if you're dithering about whether to go or not Read More...
I had a funny scenario today where I'm running on Vista and I'm hosting a VPC image (using Virtual PC 2007) and I'm finding that whenever I record the Virtual PC using Camtasia (4.0.2) various keys inside of the Virtual PC stop working. These are; The Read More...
For a bunch of what seemed like good reasons at the time I thought that I'd have another go at installing XP onto my machine which already has Vista on it. I thought I'd found a nice article over here; http://apcmag.com/5485/dualbooting_vista_and_xp which Read More...
I'm still watching this URL ;-) and waiting for new Entity Framework bits to be released but, in the meantime, I've been trying to draw a picture of all the flexibility that ADO.NET V3.0 and the Entity Framework brings to us as developers in terms of Read More...
A couple of plugs for community happenings in the next few weeks. On the 6th September, I'm doing a talk for the Vista Squad down in Microsoft's shiny, new London offices . I've not been there yet myself so that'll be interesting in itself. The talk is Read More...
I'm sitting a my laptop and the disk is spinning like a demon and I'm wondering why? I'm not "doing anything" and so it worries me that my disk is whirring and whirring. Maybe this is irrational but it does. I bring up the Resource Monitor and I find Read More...
What do you call that operation where you take a piece of formatted text off the clipboard and you paste it into Notepad in order to wash all the formatting off it so that you can just paste it as Plain Old Text (POT) into some other tool? I do this a Read More...
I've been doing a bit of "work" in Silverlight V1.1 as you might have spotted from the posts that I've been making here and I've found myself using Expression Design a lot more than I ever thought I would given that I'm a developer and not a designer Read More...
I was thinking about how you'd get Silverlight to drive interaction with a Windows Workflow and thought I'd make a stab at that here. Keeping it very simple, imagine that I have 5 images on my web server image1 to image5 and I want a Silverlight client Read More...
These controls are interesting - at this point, I've only had a chance to play with the demos that have been posted and they're cool but it had me wondering how the controls are designed. Given that Silverlight is about richness on the web, there would Read More...
If I've got some images in my Silverlight app then I probably don't want to display certain parts of the app before those images are fully loaded from the web. The Downloader provides a way to do this except that it manages (as far as I know) a single Read More...
It looks like I now have a public folder on Windows Live SkyDrive. Here it is; http://cid-1ff639cc7323d705.skydrive.live.com/browse.aspx/Public/ Now, of course, there's nothing in it - I'm playing it safe for the moment :-) Now, I wonder if I can open Read More...
I found this article in the current MSDN Magazine interesting for a number of reasons; The (fairly subtle) change in the way that async operations on sockets can now be done in .NET Framework V3.5 and the potential impact on performance that has. The Read More...
Note: Some of the posts referenced in this post (!) are likely to be more out of date than others but I still feel that they are very much worth reading. Whilst waiting for new Entity Framework bits to experiment with :-) I thought I'd start to write Read More...