Combining Entity Framework Self-Tracking, Extensible Metadata, and Data Annotations

Sunday, October 3, 2010

A few months ago, I read this great post about the Portable Extensible Metadata (PEM) of Entity Framework 4. The PEM relies on the extensibility of the entity framework EDM, which enables you to add your own XML content into the EDM. Once placed in the EDM, you can write code that investigates the MetadataWorkspace and do operations according to what you’ve written in the EDM. One usage for example which is demonstrated in the PEM extension is adding validations to entities and properties, and placing this validation information inside the EDM for later use. To let the...

Your vote is important

Sunday, September 12, 2010

The Entity Framework team has opened a wish list website to get input about what bugs people in Entity Framework 4. If you’ve ever used EF and complained about it (which happens to me on a daily basis), this is the time to speak out. Read more on the original blog post
no comments

Debugging Distributed Transactions: MSDTC network problems

Monday, July 19, 2010

It has been a while since I’ve published a post in my blog. In the past couple of months I’ve been working hard on writing the new official WCF 4 course for Microsoft and writing a book about ASP.NET 4 together with Shay Fridman, but things are calming down and I’m getting back to business. A few days ago Sasha started writing several posts about debugging distributed transactions. One issue that developers need to be aware of is the need to configure the transaction coordinators in all the machines that are involved in the transaction....
8 comments

My ORM presentation at SDP (Sela Developer Practice)

Monday, December 28, 2009

Just finished passing my presentation about ORM & Entity Framework basics This presentation is part of a whole-day seminar about ORM Tools & Concepts Currently Bernie & Erez are demonstrating NHibernate & Entity Framework head-to-head and later on Gil will deep dive into Entity Framework and Erez & Bernie will once again join forces to talk about Data Access Pattern in the real world. We’ll finish the day with an Expert Panel, where Oren Eini will join us to talk about ORMs, NHibernate, Entity Framework, Pattern,...
no comments

PDC 09 – Entity Framework 4

Wednesday, November 18, 2009

First time that I can say – there are MANY people that use EF4. How do I know? because the session had the room filled with people, with people waiting outside ! EF 4 is great. It solved many of the problems of EF3.5 and made the technology more mature and useful. What annoyed me in the lecture is that it showed all the features of EF4 that people already know of (well, I know of). The title was misleading because I thought they will talk about new features that don't exist currently. Here is the list of features, and links...
no comments

PDC 2009 First Impression

Tuesday, November 17, 2009

Wow ! I’m not familiar with events of this size. For me, Israeli Tech-Ed was the biggest event I attended. Well, there’s something strange about flying 20 hours to the far end of the world, going to a city with million of people of different types, and entering a conference center will thousands of geeks moving around. First Keynote was interesting, a lot of talking about “3 screens and a cloud”, cloud in general, Azure in specific. Many new features in VS2010, IIS, and Windows to support all the features of Azure and such. I’m looking forward to the different session. My...
no comments

Implementing Composite design pattern in Entity Framework

Last week, a colleague of mine asked me to create a sample composite design pattern model in Entity Framework. I thought to myself, no problem, created the table that contains the Component, Leaf & Composite entities (according to TPH – Table Per Hierarchy) and went to build the EDM based on the table and there I started to have problems which needed manual fixing. Since I’m working with EF 3.5, I’ve built the DB prior to the model – In EF 4.0 you can do model-first and build your db by script. After reverse engineering the db table, I got...

Entity Framework View Generation Fixup

Monday, November 16, 2009

A few day ago, a colleague of mine, Shlomo Goldberg, raised a question about Entity Framework and large models. Another colleague of mine, Gil Fink posted some links to helpful tips for using large models, and I want to talk about one of these tips – using the View Generation option. If you’ve worked with large models in Entity Framework 3.5, you probably noticed that as the model grows, it takes more time to initialize the ObjectContext for the first time. A solution to this is to use view generation, using the EdmGen tool, which can reduce up to...
one comment

Entity Framework 4 Lecture at the Web Developers Community (WDC)

Monday, September 7, 2009

Just wanted to say I had a great time giving this lecture. I’m pleased to hear people learned more than just about entity framework. Big thanks to Noam King for inviting me to give this lecture, and to Guy Burstein & MS for the accommodations. I’ve uploaded the presentation, code samples (Both EF 3.5 & 4.0) and the sample DBs I’ve used (as .MDF files, you’ll need to attach them to your db to make them work). You can download the entire file from here.
3 comments