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...

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...

Using Code First Model Configurations Classes

Monday, March 7, 2011

Using Code First Model Configurations Classes In the past I explained how to use the Code First Fluent API in order to configure and shape your EDM during runtime. One of the problems that might raise when you use the Fluent API as I showed in the previous post is that the OnModelCreating method might become bloated and hard to read. This is the time to get familiar with another model configuration option which is built inside Code First. Model Configurations Classes When you use Code First you will probably configure the creation of the model...

My SDP Lecturer Interview

Sunday, February 27, 2011

My SDP Lecturer Interview Last week Sela conducted a live broadcast with trailers to the sessions that will be presented on stage in the SDP conference. The broadcast was recorded if you want to see me “making a fool” of myself in the live broadcast you can watch the recording of my interview here (in Hebrew). I’m reminding that I’m going to have two sessions: Creating OData Services with WCF Data Services Data is a first-class element of every application. The Open Data Protocol (OData) applies web technologies such as HTTP,...

ODAC Entity Framework and LINQ Beta was Released

Friday, February 11, 2011

ODAC Entity Framework and LINQ Beta was Released If you use Entity Framework in Oracle environments the following news are for you. Oracle published a Beta release of ODAC (Oracle Data Access Components) that supports Entity Framework. From Oracle site: ”ODAC Entity Framework and LINQ Beta has arrived! It includes support for Entity Framework, LINQ to Entities, Model-First, Entity Data Model Wizard, and more. The beta includes the 32-bit Oracle Database client 11.2, which can access Oracle Database server 9.2 and higher. It requires Microsoft Visual Studio 2010...

Book Review – Entity Framework 4 In Action

Wednesday, January 26, 2011

Book Review – Entity Framework 4 In Action I spent some time lately to read the book “Entity Framework 4 in Action” which was written by several authors – Stefano Mostarda, Marco De Sanctis and Daniele Bochicchio. This book was sent to me by Manning Publications as part of the Manning Early Access Program (MEAP). What You are Going to Gain from The Book? The book is all about Entity Framework 4. The authors don’t assume that you are familiar with the technology and they take you to an Entity Framework tour. At the end of the book you will have...

MIX11 Open Call Voting Has Started Today

Tuesday, January 25, 2011

MIX11 Open Call Voting Has Started Today MIX conference is the biggest Microsoft web conference which occurs every year in Las Vegas. As in every year Microsoft asked the developers and designers communities to propose sessions that will be part of a community voting. The sessions that will be chosen will be performed on stage at this year’s conference. Since I’m going to MIX11 as in last year, I proposed two sessions and they were chosen to the open call voting. This is the session descriptions: Building Data-Driven MVC Applications with Entity Framework Code...