Someone posted a question in the Entity Framework MSDN forum asking for an example of overriding SaveChanges. I thought I had posted one in an early thread but couldn't find it. Nor could I find an obvious example anywhere on the web, so I thought I would put one here on my blog. There aren't a lot of...
Read More...Entries tagged 'tutorial' ↓
Overriding ObjectContext.SaveChanges
Sunday, July 13 2008 - Data Access
Eight Entity Framework Tutorials on DataDeveloper.NET
Friday, April 04 2008 - Data Access
August 2008 Note: the datadeveloper.net site is "in between hosts". I am not responsible for this site, just a contributor. I don't have access to the tutorials but I have found some copies of them and am putting them here: www.learnentityframework.com/tutorials . I've written a set of Entity Framework...
Read More...Eight Entity Framework Tutorials on DataDeveloper.NET
Friday, April 04 2008 - Data Access
August 2008 Note: the datadeveloper.net site is "in between hosts". I am not responsible for this site, just a contributor. I don't have access to the tutorials but I have found some copies of them and am putting them here: www.learnentityframework.com/tutorials . I've written a set of Entity...
Read More...MVC with Entity Framework ... a twist on Brad Abram's example
Thursday, January 31 2008 - Data Access
I followed the great walkthrough on Brad's blog showing how to use MVC together with Entity Framework . But I did it my own way - in VB, using a different database and trying to write more effective EF queries. I have a simple solution that renders these views from the AdventureWorksLT database: Start...
Read More...Converting Silverlight InkPresenter images to a PNG file
Thursday, January 31 2008 - Tablet
In the TabletPC SDKs and in WPF it's very easy to take an ink image and save it to an image format - BMP, JPG, etc. Then came Silverlight and the InkPresenter and naturally I wanted to do the same. But it wasn't so easy. Silverlight itself isn't bogged down with that functionality. So you first need...
Read More...Binding EF data to the (free) Xceed WPF Data Grid
Monday, January 28 2008 - Data Access
I thought I would give the Xceed WPF DataGrid (it's free!) a whirl with Entity Framework databinding. So far I have only explored the basics - no anonymous types or sprocs and I am only working with a READ-ONLY scenario. (I did notice something in their docs about being able to modify and delete but...
Read More...Implement SELECT Stored Procedures that return miscellaneous data in CTP2 of EF Designer
Tuesday, December 18 2007 - Data Access
Note: This blog post explains theory as well as steps to implementing the stored proc. If you read my blog regularly, you are used to this. 11/30/09:Anoter note! Don't miss the fact that this is for the verison of EF in VS2008 SP1. Things have been greatly improved in VS2010. Check out this *much newer...
Read More...Embedding EDM schema files in Entity Framework Beta 3
Friday, December 14 2007 - Data Access
Note: With the RTM of Entity Framework, the model's Metadata Artifact Processing property is set to Embed in Output Assembly by default, whcih is the opposite of what is described in this blog post based on Beta 3. One of the new features in Entity Framework Beta3 is the ability to embed the csdl, msl...
Read More...Using Entity Framework entities as Data Sources in a WinForms App
Wednesday, December 12 2007 - Data Access
I've done this demo many times in conference and user group sessions. Someone on the ADO.NET forums asked how to do it and I thought I would just do a quick tutorial with screenshots. What this Tutorial does is demonstrate how to create and use a data source from a particular entity in the model. I'm...
Read More...EDM QueryViews vs Defining Queries (and read-only views)
Friday, November 02 2007 - Data Access
In a recent ADO.NET forum post, someone asked how to do read-only views of data. There were two responses - use a QueryView and use a Defining Query. What's the difference? A Query view is an Entity SQL Query that exists right in your mapping layer. It allows you to solve two problems. THe first is creating...
Read More...Entity Data Model - What to do when a changes is made in the database
Friday, November 02 2007 - Data Access
With the current CTP of the ENtity Data Model Tools, there is no way to automatically update or refresh the EDM when a change is made to the data store. One of the beauties of the EDM is that fixing up the EDM in these cases is not only easy, but it doesn't need to have any impact on your application...
Read More...Mapping Associations in the EDM Designer
Wednesday, October 31 2007 - Data Access
I had to figure this out, so here are a billion screenshots so anyone who wants to do this will have an easier time of it! One of the niceties about being able to customize your conceptual models is not having to bother the dba while they are doing important things like indexing tables and optimizing...
Read More...First look at the Entity Framework Designer
Monday, August 27 2007 - Data Access
The first thing I wanted to look at after I downloaded the new Entity Framework Beta2 and Tools CTP was the EDM Designer. The designer is displayed as the result of opening up an EDMX file. The EDMX file is the wrapper for the three Entity Data Model files (CDSL, MSL, SSDL). Therefore, you need to create...
Read More...







