mcnerlin.com

Visual Studio LightSwitch (Kitty Hawk) announced

by Andrew McNerlin 8. August 2010 15:57

Microsoft has just announced LightSwitch, a new version of Visual Studio which is aimed at business users/developers who want to rapidly build simple business applications.  This release isn't going to excite hardcode developers, but business users and less experienced developers may enjoy the simplicity with which they can build basic applications.  

LightSwitch apps are divided into two concepts - data and screens.  By designing a new data source or using some existing data you can create screens which allow for standard CRUD style operations.  The screens can be one of the standard screen types supplied (e.g. Details Screen, Editable Grid Screen) or you can customise the screen to meet your own requirements.  

Features include:

  • Support for VB.NET and C#
  • Supported data sources include Access, SQL Server, SQL Azure and SharePoint
  • Creates SilverLight apps (in browser, out of browser and Cloud)
  • Auto screen creation (allowing for later customisation)
  • Auto data validation
  • Built in Export to Excel (requiring no code)
  • Word mail merge / auto document generation
  • LightSwitch apps an be opened in full versions of Visual Studio proper and customised more extensively.  This allows for an upgrade path if a LightSwitch app requires more complex features.

It will be available as part of Visual Studio Professional, Premium, and Ultimate on August 23rd.  Full release is expected early next year.

For more information see Jason Zanders Blog:

http://blogs.msdn.com/b/jasonz/archive/2010/08/03/introducing-microsoft-visual-studio-lightswitch.aspx

Shout it  kick it on DotNetKicks.com

Tags: ,

Visual Studio

Visual Studio 2010 Visualization and Modeling Feature Pack

by Andrew McNerlin 15. July 2010 22:54

Microsoft have recently released the VS2010 Visualization and Modeling Feature Pack which brings excellent new capabilities to Dev10.  I had blogged previously about the modelling features in Dev10 and was disappointed that there was no capability to generate code from the UML class diagrams.  Thats now been addressed in this first feature back release:

The concept of feature packs is slightly different to that of the power tools that we've got used to.  A feature pack has more carefully chosen features and is fully tested and supported.  Feature packs will also be rolled into future releases of the product whereas power tools(toys) were a more ad hoc.

This feature pack is available for download for MSDN subscribers (Visual Studio Ultimate with MSDN) and you can find out more here. 


Shout it   kick it on DotNetKicks.com

Tags: , , ,

Architecture | Visual Studio

Visual Studio 2010 UML + Modelling

by Andrew McNerlin 9. April 2010 14:11

I’ve been playing with the modelling features in VS 2010 to see what its capable of and I like what I’ve seen so far. 

Dev10 adds a new project template called “Modelling Project” in which you can create a series of new diagrams.  These diagrams include 5 of the 13 UML 2.x diagrams plus a Layer diagram and a Directed Graph diagram (.dgml).

Modelling Project - Add new item

UML Class Diagram
This works very well and seems to be an excellent tool for creating your logical model.  At first you may think that this would replace the class diagram that was introduced with VS 2008, but there are some key differences.  The existing class diagram (.cd) is a ‘live’ visualisation of your code.  You can reverse engineer it from existing code or create code stubs from the diagram.  The new UML Class Diagram (.classdiagram) has no links to your code at all, there is no reverse engineering and if you want to do code generation you will need to use T4 text templates.  From what I’ve read reverse engineering is a feature that is being worked on so we will see it at some point.

UML Sequence Diagram
This is the only diagram type that does support reverse engineering and I’m very impressed with it.  By right clicking on a method in your code you can select ‘Generate Sequence Diagram’ and get something like this:

UML Sequence Diagram

You can navigate from the diagram to the code with a simple right click ‘Go to definition’. 

UML Use Case Diagram
This is pretty much what you would expect for use cases – a simple drawing surface to aid the modelling of use cases.  Useful and I’m glad its now a part of the VS IDE.

UML Activity Diagram
Again this is pretty much what you would expect – an activity diagram drawing surface and simple to use toolbox for adding items to it.

image

UML Component Diagram
As with the Use Case and Activity diagrams this is a drawing surface for constructing component diagrams.  Not much else to say here: simple and better than Visio.

Layer Diagram
This diagram is intended to represent the layers of your architecture and it slightly more than just a drawing surface as it has a Layer Validation feature.  By assigning code to different layers in this diagram (a drag and drop exercise) you can generate and validate the dependencies between the classes to ensure that there are no incorrect layer dependencies.  I know I would have found this useful in the past when developers have incorrectly added dependencies which violated the architecture.

The Patterns and Practices team have also created a set of guide layer diagrams which you can add on with a small download.  This will give you toolbox items for the following reference architectures:

  • Web Application
  • Rich Client Application
  • Rich Internet Application
  • Services Application
  • Mobile Application

image

Directed Graph Document
Directed Graph Documents (.dgml) are used for a number of different features in VS 2010 (e.g. Dependency Graphs).  It is a generic document type to represent any type of node/connection relationship. Below is a simple Namespace dependency graph

image

The modelling is definitely a step in the right direction and what I’ve seen has been impressive , but I cant help but feel that there some features fell below the line when it came to the release of Dev10, specifically in relation to the UML Class diagrams.  That aside I’m pleased that I’ll be able to do a lot of my modelling in VS from now on.

** Update 16/07/2010 - The UML and modelling features have been enhanced by the release of "Visual Studio 2010 Visualization and Modelling Feature Pack" - read more about it here. **

Shout it

Tags: , ,

Architecture | Visual Studio

About

Andrew is a Software Architect based in Antrim, Northern Ireland, but currently contracting in London Andrew McNerlin

Advertisement