Browse by Tags
All Tags »
ADO.NET »
Data Access (
RSS)
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...
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...
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...
Building Data Access Layers with Entity Framework Slide Deck Today I had an Entity Framework session (“Building Data Access Layers with Entity Framework”) session at Microsoft Ra’anana. I want to thank all the attendees who came to hear the session. You were a great audience. In the session I Introduced EF. Explained the EDM concept. Explained how to query the database using EF. Explained how to make data manipulation using EF. Talked about EF4 and the major features it brought to the framework....
Adding Metadata to Entities in The Data Model Sometimes I’m being asked how to add metadata to a generated entity in Entity Framework. This metadata can be data annotation or other attributes which can help the developer during runtime. One answer that I give is to edit the T4 template in order to add the attributes. This solution can be combined with the building of an extension to Entity Framework designer which can add more details to the EDM. But it can take some time to develop. Another solution...
Entity Framework 4 Session Lately I wasn’t blogging or working because of a very annoying virus. I’m feeling better now so don’t worry I’ll return blogging gradually. I also wanted to tell you about an open house I’m having at Microsoft about Entity Framework 4 . The session will take place at Microsoft ’s office at Ra’anana in Monday 24 of January. In the session I’m going to introduce Entity Framework and then what’s new in Entity Framework 4 . For more details and for registration you can go to...
EF Feature CTP5: Inheritance Scenarios with Code First Fluent API One of the interesting features of Code First fluent API is the ability to configure inheritance in your model. Since one of the strengths of an O/RM solution is its ability to map inheritance then this feature is a must in every mapping scenario (may it be Model first , Database First or Code First ). In this post I’ll show how to configure inheritance by using the fluent API. Revisiting Entity Framework Inheritance Types In the past...
Using EF DbContext with WCF Data Services One of the questions that you may ask yourself with the new EF feature CTP5 is how to embed the new DbContext object inside an OData service or more particularly inside WCF Data Service . This post will supply the solution. DbContext as WCF Data Service Data Source Entity Framework has a good integration with WCF Data Services . All you need to do when you create a WCF Data Service with EF is to put the generated ObjectContext as a data source of the service...
More Posts
Next page »