Browse by Tags
All Tags »
DEV »
ADO.NET (
RSS)
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...
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...
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,...
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 I co-operated with Sebastian Pederiva...
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...
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...
Not Just a Designer: Code First in Entity Framework Article on VS Magazine Lately I wrote an article about Code First approach in Entity Framework 4.1 for Visual Studio Magazine . The article was published a few days ago and you can read it here . Enjoy! CodeProject
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...
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 (in Hebrew ) of all the conference...
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...
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...
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...
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...
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...
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...
More Posts
Next page »