Quick Tip – HTML5 Intellisense For Visual Studio 2010

Saturday, December 4, 2010

Quick Tip – HTML5 Intellisense For Visual Studio 2010 This is something I learnt recently in a meeting with Pete LePage. Mikhail Arkhipov from Microsoft has published a HTML 5 Intellisense add-in for Visual Studio 2010 and 2008. You can download the add-in from here. After you install the add-in you can start using HTML5 intellisense by picking its validation schema first: Then you’ll have your intellisense validation schema working and you will be able to use it in order to write HTML5 web pages. For example in the following images I use the new HTML5 video tag with this...

VS2008 No Item Templates

Wednesday, May 26, 2010

VS2008 No Item Templates While trying to add a new web form item to a project at a customer, I got the following error: After pressing the OK button I got an empty Add New Item menu:   A little scary screen… So I went to the Event Viewer as suggested in the error message and looked at the event in the Application log which was:   So I closed all the VS2008 instances I had...

Create Your First Dynamic Data Entities Web Application

Wednesday, October 7, 2009

Create Your First Dynamic Data Entities Web Application Two weeks ago I was asked if there is a way to build a web back office quickly. One thing that popped into my mind was the new ASP.NET Dynamic Data framework that was shipped with Visual Studio 2008 SP1. This post is the same introduction that I made to the team members that asked me the question. Since ...

Making Cross-Domain Ajax Requests for a Data Service

Monday, April 20, 2009

Making Cross-Domain Ajax Requests for a Data Service One problem that exists when using ADO.NET data services is cross-domain requests. For security reasons, XMLHTTP requests don’t allow cross-domain HTTP requests. So what can we do if we want to make an Ajax call for a data service that isn’t located in our domain? this post will try to give a solution to this problem. Making a Cross-Domain Ajax Request for a Data Service As stated early in the post’s start, for security reasons, XMLHTTP requests don’t allow cross-domain HTTP requests. But sometimes we do want to consume data services that aren’t...

ADO.NET Entity Framework Extensions Library

Friday, April 10, 2009

ADO.NET Entity Framework Extensions Library As part of the MSDN Code Gallery you can find the ADO.NET Entity Framework Extensions library. The ADO.NET Entity Framework Extensions includes “utilities that make querying stored procedures, creating typed results from DB data readers and state tracking external data much easier in the Entity Framework. A sample application demonstrates several patterns using these utilities, including stored procedures...

Supporting Stored Procedures that Return Primitive Types in Entity Framework

Friday, April 3, 2009

Supporting Stored Procedures that Return Primitive Types in Entity Framework One drawback of Entity Framework designer is that it does not generate code in the object context for function imports of stored procedures that return a primitive type. This post will explain how to achieve this functionality up until the designer will support it in the next release of Entity Framework. Supporting Stored Procedures that Return...

Entity Framework Mapping Helper

Entity Framework Mapping Helper Entity Framework Mapping Helper is a very useful tool that was written by the Entity Framework team and can help you to get started with various of mappings scenarios. “Entity Framework mapping helper lets you create sample mapping files for the set of scenarios you are interested in. It’s a great tool for a deeper understanding for how schema files are defined for complex...

Creating Complex Types in Entity Framework

Thursday, April 2, 2009

Creating Complex Types in Entity Framework The following post will explain what are complex types in Entity Framework and how to use them. What are Complex Types? Complex types are a way to encapsulate a set of entity’s properties inside a structure which isn’t an entity. You use them to organize properties into structures that make your design more understandable. For example, you can have a Customer entity which has properties that make...

Mapping Stored Procedure Results to a Custom Entity in Entity Framework

Friday, March 13, 2009

Mapping Stored Procedure Results to a Custom Entity in Entity Framework In the post I’m going to explain how to map results of a stored procedure to a custom created entity which we have created with the Entity Framework designer. Map Stored Procedures to Custom Entity Sometimes we have stored procedures in our database which don’t map to any table or view of our database. The problem with that is that if we want to use those stored procedures and map them to a custom entity that we have created we will get an error while compiling the project. Entity Framework’s...

QueryView Element in Entity Framework

Thursday, March 12, 2009

QueryView Element in Entity Framework In a very old post that I wrote I explained what is the DefiningQuery element and how to use it. In this post I’m going to explain what is the QueryView element, how to use it and the difference between using a DefiningQuery and using a QueryView. What is the QueryView Element? QueryView element is defined inside an EntitySetMapping in the MSL...