Tag | Entity Framework Posts

I will be presenting on the Entity Framework in Harrisburg, PA at the Central Penn Code Camp on Dec 5th, 2009.  Details can be found at the code camp site:

http://centralpenn.web121.discountasp.net/home/CodeCamp2009/2009Schedule/tabid/84/Default.aspx

Two areas I am looking at right now are SQL Azure and Entity Framework 4. PDC had plenty of content on both these areas. Just need to find the time to watch some of it! I have added direct links to the standard definition WMV and the PPTs to download (which is what I am doing right now). SQL Azure SQL Azure Database: Present and Future Windows Media Video PPT Using the Microsoft Sync Framework to Connect Apps to the Cloud Windows Media Video PPT The Future of Database Development with SQL Azure Windows ...
[This is the third in a series of posts on getting started with the new features in Entity Framework 4 based on the demos I did in my session at TechEd Europe in Berlin last week (Nov 2009).] Entity Framework 4 relies significantly on the Text Template Transformation Toolkit (T4) to generate code from the EDM. I thought it would be useful to show a really simple example of T4 in action which is nothing to do with Entity Framework. In a Visual Studio 2008/2010 solution, add a new item of type Text ...
I have been working with T4 (Text Template Transformation Toolkit) lately thanks to the Entity Framework team moving their code generation model over to T4 in Visual Studio 2010. However by default Visual Studio 2008 and 2010 do not include syntax highlighting or intellisense support for T4 files, which makes it rather difficult to work with them (very difficult at times!). Thankfully there are partners who address this. The one I am using with Beta 2 of Visual Studio 2010 is the Tangible T4 editor. ...
[This is the second in a series of posts on getting started with the new features in Entity Framework 4 based on the demos I did in my session at TechEd Europe in Berlin last week (Nov 2009).] Code generation from the Entity Data Model (EDM) has changed significantly in version 4 of the Entity Framework. The product does retain a backwardly compatible model of code generation but also now includes T4 templates for code generation. This is a fantastic addition to the Entity Framework as many developers ...
I am doing my "Getting to the Entity Framework" talk at NotAtPDC this year. It will be a virtual event via live meeting and will start at 1:30 CST tomorrow, November 19, 2009. You can get all the details at the NotAtPDC site: http://www.notatpdc.com/Sch... I will also be doing a quick 15 minute quick start on Entity Framework tomorrow night at the monthly Philly.Net metting with a discussion panel to follow: http://phillydotnet.org/ If you are all interested in checking out what Entity ...
[This is the first in a series of posts on getting started with the new features in Entity Framework 4 based on the demos I did in my session at TechEd Europe in Berlin last week (Nov 2009). ] When adding an Entity Data Model to a project you are given the option to: Generate the Model from an existing database (SQL Server, Oracle etc) or Start with an Empty Model and create your conceptual model (sometimes referred to as Application Model or Domain Model) first – adding new Entities and Associations ...
My thoughts and observations of this year’s Microsoft PDC conference in LA. Day 1: Just registered for the conference. They had many reps available to move attendees through the registration process. We arrived early, and had to stand in line for 15 minutes, while all the reps stared blankly back at us; “We don’t open until 7.” Wow.. Great Customer Service. Let me take this moment to comment on the Conference bag this year. ITS A CHEAP PIECE OF CRAP. Literally, it looks like a “reusable” grocery ...
It is Friday 13th Nov 2009 - which means it is the last day of TechEd Europe in Berlin. Overall I have had a good week – high quality sessions, lots of time with customers and colleagues and a very smooth conference throughout. I spent the week doing a bunch of things. 9am Monday I was presenting on Entity Framework 4 after 4 hours of sleep and using a brand new VPC after my original failed to load following yet another blue screen from the host (the machine will be flattened next week – perhaps ...
On Monday at 9am (9th Nov 2009) I presented a session on Entity Framework 4 to several hundred attendees at TechEd in Berlin (DEV305). I have presented EF to developers many times before but this was the first time I had shown the new EF 4 in any detail. I was really interested in the questions and feedback after the session. The tone was much more positive. Developers recognise that we are addressing their concerns with v1 and that v4 includes many very welcome improvements. They just want to get ...
No? Nor me. (If you are wondering what Mocking is, check out my previous post on Mocking, Stubs and Test Doubles.) I am at TechEd Europe this week in Berlin, speaking on Entity Framework 4.0 and manning the .NET Framework stand. Behind the .NET Framework stand is the Pex and Code Contracts stand manned by the two lead developers of Pex, Peli de Halleux and Nikolai Tillmann. I looked at Pex many months back but was completely unaware of a great new feature they added in September 2009 – Stubs and ...
Tomorrow night I’ll be at RockNUG presenting LINQ to SQL. Yes, LINQ to SQL. Again. In the last 2 years I have presented LINQ to SQL numerous times at various user groups and code camps. Why do I keep getting asked to present LINQ to SQL? Isn’t LINQ to SQL dead? Answer: No. LINQ to SQL is not dead! This confusion all started back in October 2008 with a seemingly innocuous post on the ADO.NET team blog discussing the emphasis that Microsoft was going to put into the Entity Framework going forward. ...
I thought it would be useful (at least to me!) to summarise the new stuff in Entity Framework 4 given it actually comes in 2 parts. The list is a simplified and categorised version of this and this. General Foreign Keys now added: EF 4 now includes a new type of associations (Foreign Key Associations) that allow you to have Foreign Key properties on your entities. They are the default although the EF v1 Independent Associations remain. Lazy Loading on by Default in new Models: Also name change from ...
There seems to be enough confusion about the betas and ctps of Entity Framework 4 to warrant a brief post. Hopefully this should clear things up nicely. Put simply: Most of Entity Framework 4 (EF4) will ship with .NET Framework 4 and Visual Studio 2010 (.NET4/VS2010), however not all of it will. Most of EF4 is therefore in the beta releases of .NET4/VS2010, however not all of it is. The missing bits of EF4 appear in EF4 Feature CTP releases “soon after” the release of a beta. Right now (Nov 6th 2009), ...
Next week I will be presenting Entity Framework 4 at TechEd Europe. At least that is what I hope to do. However my Lenovo T61P seems to have some other plans. A year back the screen packed in. The nice IBM man replaced it. All was well. Last week the screen packed in again. The nice IBM man replaced it. All was well … with the screen. However since then I am getting blue screens (whenever I really don’t want them) and drive errors and the odd bit of corruption of files. I need to flatten – but now ...
Next Monday (9th Nov 2009) at 9am I will be delivering an overview of the new stuff in Entity Framework 4 at TechEd Europe. The session is DEV305 and the description reads: ADO.NET Entity Framework in Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 (catchy?) This presentation offers an in-depth discussion demonstrating the new capabilities of the Entity Framework that will ship with Visual Studio 2010. The second release of the Entity Framework focuses on addressing two primary customer ...
While I was planning to write about the same topic and have the draft ready in my Windows Live Writer waiting to complete, I found an interesting question in StackOVerflow and couldn’t just resist to answer: ORM/Persistence layer Advice The question starts with: I'm starting a new project and I'm looking around for either a very good ORM or for a non-SQL-based persistence layer. Then follows up with a REALLY GOOD summary of what he believes about each known ORM he knew out of his own findings and ...
The Beta 2 version of DPE’s Visual Studio 2010 Training Kit is now live (you can find it at http://tinyurl.com/Beta2Tra... A training kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize a variety of Visual Studio 2010 and .NET Framework 4 technologies. The Beta 2 release of the Training Kit contains 15 presentations, 19 hands-on labs, and 13 demos. Many technologies are covered in this release, including: C# 4, VB 10, F#, Parallel Extensions, ...
I spoke last weekend at the Orlando SQL Saturday on the topic of SQL Server and the xml data type. I was somewhat concerned that my session would draw little attendees for several reasons. First, my session was in the last timeslot of the day, from 4:00 PM to 5:00 PM. Second, I was up against some tough competition. The organizers of the event had brought in Joe Celko to speak, and he was speaking at the same time I was. Buck Woody from Microsoft was also speaking, discussing the new Resource Governor ...
I am working with Entity Framework as model in a REST service, using the CollectionService<T> and i found a little issue in the behavior of Linq to Entities,this is well know but i hope a change in .Net 4.0 Currently Linq to Entities not supports projections that returns types with parameterized constructors, by instance for a method that return a IEnumerable<KeyValuePair... Course>> i wanna make 1: .Select(c => new KeyValuePair<string, CustomType>(c.StringProp... ...
I've been meaning to post this for a while, but I have some upcoming speaking engagements coming up throughout South Florida. Yesterday I was in Naples, Florida speaking at the SW Florida .NET Code Camp, speaking on a lot of the new things coming in ADO.NET 4.0 Entity Framework (obviously ). I completely ran out of time as I tried to cram a bunch of topics into an hour. I talked about Model-First development, POCO, and T4 templates. I first gave a brief EF introduction to those who were new to EF, ...
This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. The plan vs actual for day five (The last day): Play, play, play with the technology. PART DONE Produce outline skeleton demo sequence for both sessions PART DONE Produce a backup VM “just in case” :) DONE Run through both presentations for rough timing (mainly to figure out talk to demo ratio) PART DONE Look into this annoying bug which appeared to have started after I installed Silverlight ...
This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. The plan for day three: Nearly got it all done. However I ended up spending more time on EF4 than I had planned as … there is a lot of it! Gather up good posts and samples for EF 4 (will likely blog this out) DONE Play with EF 4 as much as my day allows DONE Revisit EF 4 deck post play DONE And a late night re-read of the three Azure storage documents from way back (will add links in the ...
This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. [Initual release 22nd Sept 2009] [Updated 23rd Sept, with links from Julie Lerman] [Updated 2nd Oct, with slidedeck section] [Large Update 15th Dec – including PDC09 content, my new posts and plenty of stuff from Julie L, Tony and others] This is my attempt to pull together all (ok – most) of the improvements in Entity Framework 4.0 and aggregate useful resources against each. It is very ...
This is one of a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. The plan for day two: The Tuesday plan vs actual was … 100% spot on. Install Entity Framework CTP on Windows XP Mode. SUCCESS Install VS2010 into a Boot from HD Windows 7 VHD (Yep… back to plan A as I would much prefer to use VS2010 without a VM but also without installing it direct on my host Windows 7 which I want to keep reasonably clear) SUCCESS Revisit both decks. DONE Play with Entity ...
This is the second in a series of posts on my preparations for sessions on Azure and ORMs at Software Architect 2009. In case you don’t want to skim through the whole post, the main things I learnt in day one are: 1. Never forget that install errors can be caused by something as simple as a corrupt file! (My “battle” outlined below) 2. Virtual PC RC for Windows 7 isn’t perfect. It doesn’t like working with a VM created on an older version. (Details below) 3. There are some nice storage explorer tools ...
Next week I am presenting two sessions at Software Architect 2009. Both sessions are new, new in the sense that I am creating them this week and new in the sense that whilst they are on topics I have experience with, in each case there is a significant new element for me to learn. I thought it would be fun and interesting (to me anyway!) to keep a diary of my preparations to get these sessions in good shape. The two 90minute sessions are: Design considerations for storing data in the cloud with Windows ...
I was asked to present on RIA Services with Silverlight for the FUNdamentals session of the East Bay .NET User Group last week. Even though I only had 30 minutes to present on the topic, I decided to show the full development of a CRUD application. With RIA Services this is a straight forward thing to do and still allowed time to explain the concepts in use. The solution found here is the code that was built during the demonstration at the user group. It shows the use of Entity Framework to connect ...
Alright dear readers (both of you), I told you last time that I would answer that age-old question, “How many projects should I have in my solution?” The answer is: only as many as you need. I know, I know, but it’s not a copout, really it’s not. I’ve really found that is it easier to start with fewer projects and break them out when you need to, than trying to combine projects later on. Does that mean that one project with everything in it is right? Yes. If that is all you need. I realize it sounds ...
Turing Project Page: [Novice: 9 | Advanced: 6 ] FAQ | Table of Contents | Definitions What is this and where do I start? [Reposted here while my primary blog is sorted out ] From Database to DataGrid The next step in Project Turing is to create a first iteration of the Silverlight application that will retrieve data from our database. Using our technology of choice: the Data Entity Framework coupled with .Net RIA Services. .Net RIA Services will allow us to create business logic on the server and ...
UPDATE dated August 17, 2009 Once I posted this entry, there is a lot of interest that has been shown and few queries as well. So I thought I need to update this post. This is only the first post in the series on ASP.NET 4.0 fetaures. There are lot of ground breaking things and other enhancements that are pretty exciting. To the folks who asked for "why MS changing dev platform once in 18 months" There is no change. there are a few enhancements. Post .NET 2.0 there have been a lot of additional APIs ...

For all of you who have been tracking this post for its Entity Framework content, that sort of took a hiatus while I was working on SQL Saturday.

The good news is that I am back working on the Entity Framework book and I am really looking forward to posting some of the great technology.

I don't want to leave any of you high-and-dry so if there is any specific content that you would like me to post about please let me know.

Back to writing!

I was reading the Developer Evangelist Handbook which is a good guide for public facing developer evangelists created by Chris Heilmann of the Yahoo Developer Network. Check out the online handbook here http://developer-evangelism... In this handbook there is some great advice for people who complete public presentations or someone who want to expand their current speaking engagements. In reality many developers are evangelists (or should be) at there places of employment. Developers often feel ...
In this Issue: Rui Marinho, Danijel Stulic, Jesse Liberty, Bill Reiss, Evgeny, Chris Klug, Brad Abrams, and Page Brooks. Shoutout: Mike Harsh reports Slidentity Updated for Silverlight 3 RTW ... if you haven't seen this, now is a good time... very cool! Terence Tsang is getting overrun with XAML snippets [no wonder :) ] and is working on an idea for an app to help him organize his resources: Silverlight Resources Directory. He's also looking for input for you! From SilverlightCream.com: Data Visualization ...
Hi everyone, I've been talking with Microsoft regarding the Entity Framework and they desperately need your feedback. One of the features with the .NET Entity Framework 4.0 is the ability to generate/create an Entity Data Model using Code Only. Code Only allos you to use the Entity Framework, using plain old CLR objects (POCO) entities and without an ECMS file. According to Microsoft, they need to get a lot of feedback on it before they can consider putting it into the product. If you are a fan of ...
A long overdue “brain dump” of stuff that I found interesting. Development related: WPF vs Silverlight A detailed look at the differences (and similarities) between the two. “Size vs features, full trust vs sandboxed” Changes to the compatibility modes in Windows 7 – new to me. Meet “RunAsHighest” A nice drill down into Azure Table Storage, REST and the ADO.NET Data Services Story - Interested in ORM? Then IMHO you have two main choices right now. The ADO.NET Entity Framework (.NET 3.5 SP1 and above) ...

Hosted by the Dallas .NET Users Group, the first of a series 30-minute of Entity Framework Webcasts will take place Friday July 17th, at 12:15 PM Central Time. Use the following link to register:

 

http://www.clicktoattend.com/invitation.aspx?code=139637

This is the final post in a four part series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. The steps in this post build upon those completed in part 3. The goal of this series is to show those of you who are relatively new to Silverlight how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app is built on Visual Studio 2008 SP1, SQL Server 2008, Silverlight 2.0 and the Silverlight ...
This is the first post in a series to demonstrate how to use the standard MSFT technologies to implement a CRUD data application in Silverlight. This post is beginners stuff - there’s nothing advanced here. Most readers with some experience of Silverlight will learn nothing from this post, but I want to start at the beginning so those of you who are relatively new to Silverlight can see how analogous building such an app in Silverlight is to say building it in ASP.NET, Win Forms or WPF. This app ...
This podcast accompanies the July 1st, 2009 edition of the MSDN Flash newsletter. It includes an interview with Gary Short discussing technical debt and the roll refactoring can play in repaying that debt, plus a discussion of my teams new YouTube channel. Show Notes: Three Men and a Whiteboard discuss ASP.NET MVC Fun look at IE8 web accelerators with Tesco Anti-Patterns to Avoid in Entity Framework N-Tier Applications Web Site Improvements Using jQuery and jQuery UI Great screencasts on WCF, Silverlight ...
ADO.NET Data Services provides a robust REST API over top of a data source. That data source could be 1) the Entity Framework (EF), 2) LINQ to SQL, or 3) your own custom data source that implements IQueryable and/or IUpdatable. However, it should be noted that in v1, EF is really the “first class” data source for ADO.NET Data Services because it supports both IQueryable and IUpdatable out of the box. In this post I’ll discuss the scenario where you have inheritance in your entity object model and ...
In March 2009 I presented on Entity Framework V1 and a little V2 at DevWeek 2009. MikeT caught me on camera while I was there. I have (rather embarrassingly) only just got round to publishing the video. Ultimately I run out of excuses and was only left with … I’m shy :-) I presented an updated version of the deck earlier this Month (May) which you can view here along with additional links ...
The big news today is that Microsoft released Visual Studio 2010 Beta 1 to MSDN subscribers! I don't know when it will be publicly available but if I will let you know as soon as I know something. As I mentioned in my last post, I went to Seattle last week and met with the Entity Framework group to discuss the upcoming new features and changes to the ADO.NET 4.0 Entity Framework release. There are a TON of cool new features and enhancements and I will post again tomorrow listing many of them, so ...
I’m speaking again at DevTeach this year in June in Vancouver. Here is a comprensive list of things going on. Party with Vancouver IT community Monday June 8th URL: http://party.cuga.ca/Home.aspx Vancouver IT community is hosting Monday june 8th in Vancouver a DevTeach kick off party. This is the official social event for DevTeach Vancouver. The event is not just for the attendees of DevTeach Vancouver it’s a free event for everyone. It’s a unique chance for the attendees, speakers and locals to ...
Long past due is a review of Julie’s book, Programming Entity Framework, ISBN 978-0-596-52028-1 Julie adopted Entity Framework early on, from before it was even available to most MVP’s. This book is a reflection of that involvement with the product and the product teams over the past few years. This 23 chapter, 750+ page book covers a lot of ground and provides a great reference book for almost everything entity framework related. The first few chapters introduce the framework and will give you a ...
I have started talking to developers about what they can expect in Entity Framework V2 such as in my session at DevWeek 2009 (Check out the slides and links). Folks have liked what they have heard and are keen to get more detail. The good news is the development team have been busy posting updated information this week (May 11th and 12th 2009) about what we can expect to see in .NET 4.0. Update on the Entity Framework in .NET 4 and Visual Studio 2010 “Since we shipped the .NET Framework 3.5 SP1 and ...
Had a great time on Tuesday (5th May 2009) at NxtGenUG in Oxford. A very friendly crowd, a fun user group and great to watch the banter between Alex and Barry first hand, rather than over twitter :-) I also won a rubber duck – which justifies working in the evening in my book :-) Useful links: MSDN Flash eBook 13 of the “Best Technical Articles of 2008” (also http://bit.ly/flashebook1) MSDN Flash Podcast Pilot For feedback (also http://bit.ly/flashpod1) http://blogs.msdn.com/efdesign The Entity Framework ...
I’m very pleased to see that DataDirect have a beta of their Connect for ADO.NET Entity Framework provider for Oracle which now adds support for the ADO.NET Entity Framework. Still in Beta (1st may 2009) and available for download. Enjoy (and feedback what you find – tx) P.S. Other companies also provide this capability – but I know a lot of folks use DataDirect for Oracle work ...
Dynamic query building is most often used in the enterprise world for search screens and other operations. I remember writing code very tediously night and day for a very big search screen. Those days where the nightmares, but good experiences we got. Now these things are made very simple by means of Microsoft's Ado.Net entity framework. ADO.Net Entity Framework is an ORM extension from Microsoft. This is something similar to Linq to Sql . But this one is having some good features and we will be ...
Julie Lerman is one of the hippest, smartest people I know. If you haven’t already heard of her, this is your chance to crawl out from under that rock and get a glimpse of an industry legend. Don’t worry about that giant ball of fire in the sky, that’s just the sun. Those of you that HAVE heard of Julie probably already know how awesome she is, but keep reading anyway. My first introduction to Julie was hearing Bill Ryan refer to someone as “Julie Lerman smart.” I figured that was enough of a recommendation ...