Microsoft Study Bible

November 12, 2009

The improvement of VS 2010 and .NET 4.0 code Intellisense

The improvement of VS 2010 and .NET 4.0 code Intellisense
Today ,we will talk about the a small but really nice improvement to VS 2010 code intelligent hints with VS 2010 that better filter type and complete the member code ,which will make you more easily find and use APIs when writing code.
Code Intellisense with VS 2008
To show how improve code Intelisense of VS 2010, let us look at a example in VS 2008 where we want to write some code to enable an editing scenario with a GridView control. Maybe we start to type”GridView1.Edit”to bring up intellisense to see what Edit members there are in this control. It will bring up the intellisense drop-down box which move the current location into the members whose initial letters are “Edit”:

11

It was OK if we would like to use the initial letters of the method/property/event that are “Edit”. However, if the initial letters of the “Edit ” members we are looking for are other words such as “RowEditing” event or “SetEditRow()” helper method, this will can not be helpful for us .We have to either manually scroll up and down looking for the other edit members, or pull up the object browser or help system to find them.
Code Intellisense with VS 2010
Now,let us try out the above example in Visual Studio 2010。When we start to type “GridView1.Edit”, we’ll find that the EditIndex property is still highlighted by default. But the intellisense list has also been filtered so that it enables you to quickly locate all other members that have the word “Edit” anywhere in them:

21
This allows us to quickly see all of the edit related methods/properties/events and more quickly find what we are looking for.
Searching for Keywords
This new intellisense filtering feature of VS 2010 is useful for searching for any member – regardless of what word it starts with.  For example, if we want to enable paging on a datagrid and can’t remember how to-do it, we could just type “GridView1.Paging” and it would automatically filter out everything but members that have the word paging.  Notice below how no members on the GridView class actually start with the word “Paging” – but I am still finding the two members that do have paging in them later in their names.

31

Searching for Types
This new intellisense filtering capability of VS 2010 is also useful for quickly finding classes and types. For example, when we type “List” to declare a variable, the editor will provide automatic filtering to show all types that have the word “List” somewhere in them (including IList<> and SortedList<> – which do not start with List):
41

This makes it much easier to find type names you can’t entirely remember – without having to resort to searching through the object browser and/or using help documentation.
Pascal Case Intellisense
The .NET Framework naming guidelines specify that type and member names should be “Pascal Cased” by default.  This means that each word in a type or member should start with a capitalized letter (for example: PageIndexChanged). 
VS 2010’s intellisense filtering support now enables you to take advantage of this to quickly find and filter methods based on their pascal naming pattern.  For example, if we typed “GridView1.PIC” VS 2010 would filter to show us the members that have PIC in their name, as well as those members which have a pascal cased name where the word segments start with that letter sequence:

51

Notice above how PIC caused both “PageIndexChanged” and “PageIndexChanging” to show up.  This saves us a few keystrokes when resolving either member or type names.
Summary
I think you’ll find that the new intellisense filtering approach in VS 2010 makes it easier to quickly find and use classes and members when writing code.  You can take advantage of it with both VB and C#.
Hope this helps
This is from http://weblogs.asp.net/scottgu/archive/2009/10/22/vs-2010-code-intellisense-improvements-vs-2010-and-net-4-0-series.aspx

November 3, 2009

SQLAzureMW: Migrate SQL 2005/ 2008 to SQL Azure

SQL Azure Migration Wizard (SQLAzureMW) is a project on the CodePlex, which helps you migrate to your local SQL Server 2005 / 2008 databases into SQL Azure.

 The SQL Azure Migration Wizard (SQLAzureMW) will let you identify a SQL Server 2005 / 2008 database that you want to migrate to SQL Azure or select an existing SQL file that has the commands you want to execute against SQL Azure. After you choose SQL Server 2005/2008 database, SQLAzureMW walks you through the selection of your SQL objects, creates SQL scripts suitable for SQL Azure, and allows you to edit / deploy to SQL Azure.

If your source is a SQL Server database, SQLAzureMW will walk you through the different object types (i.e. Tables, Stored Procedures, Views, etc.) and let you decide which ones you want analyzed / scripted. You will be given three options:

 Script to window - Choose this option to display the SQL script to a wizard window where you can modify it before telling the wizard to script to Azure. 

  Script to file - Choose this option if you want to save your SQL script to a file. You can edit this file in SQL Server Management Studio and run it from there or save it and use the wizard to load and run your file.

Scrip to Azure—Choose this option if you have database compatible with SQL Azure. It will prompt you to input Azure account and then run the generated script.

SQLAzureMW can handle the incompatibility between SQL 2005/2008 and SQL Azure. For example, it will l automatically try to make changes to your SQL Azure tables / stored procs / view (for example, text columns will become varchar (max) columns), and unbind XML schema collections, which SQL Azure don’t support .These conversions and changes of script are stored in a XML configuration file named NotSupportedByAzureFile.config.

  The current version of SQLAzureMW in Alpha v0.2 is based on Microsoft Public License Ms-PL)。SQLAzureMW is a project in VS 2008, which must run on .NET 3.5.

           

 

August 23, 2009

Unable to install vs 2008 in Windows Vista??

Microsoft declared Visual studio 2008 was able to run under Vista operation system. However, many of us failed to do that .Today, we will discuss these problems.

Symptoms: After you installed vs2008 beta under vista, you could not run setup.exe.
Cause: 1.something wrong with your OS.
2. CPU frequency is too low; the internal memory capacity is not enough, and insufficient disk space and so on.
3. Improperly install
Resolution: Reinstalling the system; Hardware upgrades.

Symptoms 2: unable to install VS 2008 with Virtual Drive and you fail to double click the Setup.exe, though you tried kinds of versions Vista。 And there may be is wrong with the Virtual Drive. Previous versions of Vista treat most of Virtual Drive as Physical CD-ROM.
While Vista system would distinguish strictly between Virtual Drive and Physical CD-ROM and some of Physical CD-ROMs would not be listed in Logical Disk Manager, for example the Virtual CD of UltraISO was not listed. Maybe the Virtual Drive is not completely compatible with Vista.
Resolution:Unzip image files into the hard disk.

Powered by WordPress

Close
E-mail It