Installing a Production Server for ASP.NET MVC 2

December 18, 2010

Installing a Production Server for ASP.NET MVC 2 Two days ago I was asked to help with a production server installation. In the customer environment they built an ASP.NET MVC 2 application which they wanted to deploy. I found a very excellent post that Jon Galloway wrote about this subject and used it in at customer. In the post I’ll summarize some of the options that I used when we installed the production server for ASP.NET MVC 2.  Web Platform Installer I wrote about the WebPI in the past. This option is the best option...

Sela College Channel (Beta) is Broadcasting

December 15, 2010

Sela College Channel (Beta) is Broadcasting My company Sela has created a project which is on air currently. Sela infrastructure team created an internet broadcasting channel which will broadcast content about topics related to computers (focusing on development and testing). In the channel you can watch sessions from open houses we conduct, sessions that were taken from courses that Sela deliver, experts sessions, conferences sessions and more. Also, you can register to the channel and upload your own content which will then be a part of the channel library. In the channel there are currently 156 sessions (the...
3 comments

EF Feature CTP5: Inheritance Scenarios with Code First Fluent API

December 12, 2010

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 I wrote a series of posts about inheritance mapping in...

Using EF DbContext with WCF Data Services

December 11, 2010

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. The following code is a...

EF Feature CTP5: Raw SQL Query/Command Support

December 8, 2010

EF Feature CTP5: Raw SQL Query/Command Support One of the new features that EF feature CTP5 supplies is the support for raw SQL Query/Command through the DbContext. In this post I’m going to show you examples for how you can use this feature. Pay attention that the details I provide might change in the future since its only a CTP and not a release. DbContext Raw SQL Query/Command Support EF feature CTP5 supports the execution of raw SQL queries and commands through the DbContext. This behavior resembles the ObjectContext’s same functionality that is exposed by the...
11 comments

EF Feature CTP5 – Code First Fluent API

EF Feature CTP5 – Code First Fluent API One of Code First main features is the Fluent API. This API can help you to configure the model in order to shape it (and the database) better. In this post I’m going to show a simple example for how to use the Fluent API. Pay attention that the details I provide might change in the future since its only a CTP and not a release. The Example Model In the example I’m going to use the following model: ...
8 comments

EF Feature CTP5 – Walkthrough For The New DbContext T4 Template

EF Feature CTP5 – Walkthrough For The New DbContext T4 Template One of the new features in the EF Feature CTP5 that was released yesterday was a new T4 template for generating DbContext instead of ObjectContext. In this post I’m going to explain what is the new DbContext and then show how to use the new T4 template. Pay attention that the details I provide might change in the future since its only a CTP and not a release. What is DbContext? The DbContext is a new lightweight context that was created and provided within the...
no comments

Entity Framework Feature CTP5 Released

Entity Framework Feature CTP5 Released Yesterday, ADO.Net team released the EF feature CTP5. The feature CTP contains new features for Entity Framework that are planed to be shipped as a stand alone package in the first quarter of 2011. The main feature in the package is Code First which allows you to define your model using C# or VB.Net classes only. This approach will be added to the previous EF approaches: Model First and Database First to form a better framework for common data access development scenarios. Other features are the lightweight DbContext and DbSets objects, T4 template...
2 comments

How to Separate Self-Tracking Entities to Their Own Class Library

December 5, 2010

How to Separate Self-Tracking Entities to Their Own Class Library Last week I had a session in Teched Israel 2010 which included approaches for building N-Tier applications on top of Entity Framework 4 as the data access technology. During the session I showed an example of how to use the new Self-Tracking Entities (STE) feature. In this post I‘m going to show how easy it is to put the STE in a different class library as a jump start for using this T4 Template in N-Tier scenarios. What is Self-Tracking Entities? In EF4 a new...