Wrapping up the VSLive Redmond Week

Saturday, August 11, 2012

Wrapping up the VSLive Redmond Week A few days ago I had the opportunity to deliver two sessions in the VSLive Redmond conference. In the conference I delivered two different sessions: Working with Client-Side HTML5 Storages – slide deck and demos are available to download from this link. Not Just a Designer: Code First in Entity Framework – slide deck and demos are available to download from this link. I want to thank all of the attendees in both of the sessions. I had the opportunity to...

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.

New Speaking Engagement – Visual Studio Live

Thursday, April 12, 2012

New Speaking Engagement – Visual Studio Live Lately, I have been chosen to speak at the Visual Studio Live (VSLive) conference. The conference will take place in August 6-10 at Microsoft headquarters in Redmond, WA, USA. I’m going to have a ~16 hours flight to go there, but I’m not flying alone. Ido Flatow, one of my Sela Group colleagues which is a “veteran” VSLive speaker, is going to the conference also and will have two sessions (one about ASP.NET Web APIs and the other about Windows Azure). I’ll have two sessions: ...

Avoiding Circular Reference for Entity in JSON Serialization

Monday, October 17, 2011

Avoiding Circular Reference for Entity in JSON Serialization One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem.    The JSON Serialization Error Returning the output of the JSON method in an ASP.NET MVC controller with a JSON object graph based on an Entity Framework Code First object causes...

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