DCSIMG
DEV,Visual Studio 2008 - Gil Fink's Blog

Gil Fink's Blog

Fink about IT

News

Microsoft MVP

My Facebook Profile My Twitter Profile My Linkedin Profile

Locations of visitors to this page

Creative Commons License

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2013 Gil Fink

Hebrew Articles

Index Pages

My OSS Projects

English Articles

Browse by Tags

All Tags » DEV » Visual Studio 2008 (RSS)
Quick Tip – HTML5 Intellisense For Visual Studio 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...
VS2008 No Item Templates
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 currently running and tried to regenerate the templates by running the devenv.exe /installvstemplates . That didn’t...
Create Your First Dynamic Data Entities Web Application
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 there weren’t any customizations needed in the back office they needed the result was a standing back office in 5 minutes. That is very productive...
Making Cross-Domain Ajax Requests for a Data Service
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...
ADO.NET Entity Framework Extensions Library
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 with multiple result sets, materialization of CLR...
Supporting Stored Procedures that Return Primitive Types in Entity Framework
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 Primitive Types As indicated in the post’s prolog the Entity Framework designer...
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 mapping scenarios in Entity Framework .” (The Entity Framework Mapping Helper description on...
Creating Complex Types in Entity Framework
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 an address.  You can arrange these properties in a Address...
Mapping Stored Procedure Results to a Custom Entity in Entity Framework
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...
QueryView Element in Entity Framework
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 part of the EDM schema and it is a read-only mapping between an entity in the CSDL and an entity/ies in the SSDL . You...
Enabling Xml Schema Validation in Visual Studio
Enabling Xml Schema Validation in Visual Studio The post is a simple tip which will help you to enable Xml schema validation and intellisense while writing an Xml file inside Visual Studio . The Problem Writing Xml files according to a specific Xml schema definition is sometime very hard and can be a very “painful” task for a developer. You need to remember all the small details and elements in order to do it properly. So how can we validate the Xml files while writing them? The Solution Having the...
Adding Many to Many Relationship between Entities
Adding Many to Many Relationship between Entities A friend of mine asked me this week a question regarding link tables in Entity Framework . In their system they have a link table of many to many relationship between more then two tables. The Problem We have a link table with more then two reference keys but Entity Framework map this table into an entity instead of an entity association of many to many . For example I have the following hypothetic database which has a relation of many to many between...
Mapping Stored Procedures to ObjectContext Methods
Mapping Stored Procedures to ObjectContext Methods In the session I had on Sunday I showed a simple scenario of how to map stored procedures to ObjectContext methods in Entity Framework . In this post I’ll show the same example that I used in the session . The Stored Procedure In the example I’m going to use a simple stored procedure which returns all the courses from the database ordered by their title. The stored procedure code: CREATE PROCEDURE dbo.GetCoursesOrderByTitle AS BEGIN SET NOCOUNT ON...
Entity Splitting in Entity Framework
Entity Splitting in Entity Framework One of the mapping scenarios that I talked about in the session at WDC this week but I didn’t show an example is entity splitting in Entity Framework . This post will explain what is entity splitting and how to implement this mapping scenario in Entity Framework . What is Entity Splitting? Entity splitting is a scenario that happen when our entity is constructed from many tables in the database. This happens for example when we don’t want duplications in our database...
Start Thinking with ADO.NET 3.5 Slide Deck
Start Thinking with ADO.NET 3.5 Slide Deck Yesterday I had an ADO.NET   3.5 session in the The Israeli Web Development Community (WDC) . The session agenda: Entity Framework ADO.NET Data Services Datasets Enhancements   As promised, the slide deck and demos can be downloaded from here . I want to thank Noam King for the opportunity to lecture in WDC . it was a pleasure. Also, I want to thank all the participants of the session . I really had a good time presenting the frameworks. Also,...
More Posts Next page »