Not Just a Designer: Code First in Entity Framework – VSLive Session Slide Deck and Demos

Friday, August 10, 2012

Not Just a Designer: Code First in Entity Framework – VSLive Session Slide Deck and Demos Today I had the pleasure of delivering another session in VSLive conference. The session that I delivered was about Code First in Entity Framework and I covered Code First, DbContext API and Entity Framework Migrations. I want to thank all the attendees who came to my session and also to VSLive organizers for giving me the opportunity to speak in the conference. You can download the slide deck and demos from this link.

Creating a Many To Many Mapping Using Code First

Monday, August 1, 2011

Creating a Many To Many Mapping Using Code First Today I got a question about how to create a many to many mapping using Entity Framework Code First. The question was how to create the mapping with an existing database. Here is an explanation how to achieve that. Creating Many To Many Mapping Sometimes there is a need to create a many to many relation in the database. When we want to achieve that we will create a relation table which will hold the primary key from every table in the many to many relation. Here...

Microsoft Entity Framework June 2011 CTP was Released

Friday, July 1, 2011

Microsoft Entity Framework June 2011 CTP was Released Yesterday, ADO.NET team released a new EF CTP. If you attended my Sela Dev. Days EF4.1 tutorial day this week you heard about this release and the new features. Here is the list of new features to expect from EF4.2 that you can evaluate with the new EF CTP: Runtime Features The Enum data-type. At last we will have support for enums. You can use either the Entity Designer within Visual Studio to model entities that have Enum properties, or use the Code First workflow to...

My Sela Dev-Days Experience

Tuesday, June 28, 2011

My Sela Dev-Days Experience Today I finished my Sela Dev. Days experience. Sela Dev. Days is a conference which include 5 days, 15 top experts, 25 session, and a whole lot of attendees (around 600 people registered for this week). If you are not familiar with Sela Dev. Days you can go to the conference’s site. In the conference I had three tutorial days in three different subjects: ASP.NET MVC 3, EF Code First integration, and Razor: Oh My! In this one day tutorial...

How to Configure a Self Referencing Entity in Code First

Friday, June 3, 2011

How to Configure a Self Referencing Entity in Code First A few days ago a worker in Sela asked me how to configure a self referencing entity with EF Code First. In this post I’ll show you how to implement that configuration. Self Reference Scenarios There are a lot of scenarios that we will want to implement a self reference between an entity to itself. For example, we do that when we want to create hierarchies in our application - an employee entity that has a self reference to his/her manager is a very common scenario for that. When we want to...

Creating a Code First Database Initializer Strategy

Monday, May 30, 2011

Creating a Code First Database Initializer Strategy Yesterday I helped a colleague with his ASP.NET MVC 3 site deployment. That colleague implemented the data access layer using EF4.1 Code First. One of the restrictions that he had was that he didn’t have database permissions to create a new database and couldn’t use SQL Express or SQL CE in his application. Instead he had an empty database for his disposal in the hosting environment without a way to run SQL scripts… In such a situation the provided Code First database initializer strategies weren’t sufficient (he couldn’t drop or create...

Spreading Inheritance Tree Mapping Across Assemblies in Code First

Sunday, April 17, 2011

Spreading Inheritance Tree Mapping Across Assemblies in Code First Today I helped a client to solve a problem regarding EF4.1 Code First. The issue that they banged their heads with was an inheritance tree mapping in their model which is spread across two different assemblies. When they run the application they always got the same exception – “mapping and metadata information could not be found for entitytype ‘entity name’”. So they sent me a sample solution and I checked it and gave them the solution. The Client Provided Model In one class library there are the...
no comments

Sela SDP Conference Sessions Slide Deck and Demos

Thursday, March 17, 2011

Sela SDP Conference Sessions Slide Deck and Demos Yesterday Sela SDP Conference ended after 4 intensive days. In the conference I had two breakout sessions about OData and about Code First in Entity Framework. First of all I want to thank all the attendees in those sessions. I hope that you had good time and that you enjoyed the sessions and of course the whole conference. As always I published the sessions slide decks and demos for you to download. The recording...

Entity Framework in Depth at Sela SDP

Monday, March 14, 2011

Entity Framework in Depth at Sela SDP Yesterday Ido Flatow, Erez Harari and I delivered a tutorial day about Entity Framework as part of Sela SDP conference. The day included the following topics: Introduction to ORMs and to Entity Framework (delivered by Ido) Querying and Manipulating Data using Entity Framework (delivered by Erez) Entity Framework Internals (delivered by myself) Entity Framework in N-Tier Applications (delivered by myself) Experts Panel (delivered by all of us) I want to thank...