Vincent-Philippe Lauzon’s

Azure, Apps & Data

  • Entity Framework with Asynchronous behaviours

    They finally did it:  the future release of Entity Framework (version 6) will sport asynchronous behaviour based on .NET 4.0 Task Parallel Library (TPL).

    The API is pretty neat.  First the SaveChanges gets an async brother SaveChangesAsync returning a Task.  So we can now write things like:

    await context.SavesChangesAsync();

    The more complicated topic is the queries. ...

  • Unit Testing SharePoint

    Doing automated unit tests in SharePoint isn’t easy.

    As with all libraries that haven’t been designed with unit testing in mind, SharePoint object model doesn’t expose its dependencies:  it connects to a Content Database given the context creating it and there are no ways to redirect it to some stub implementations.

    That is unless you can override method invocations.  This...

  • Web Design: Make Complex thing Simple

    I’m always amazed at you a simple user interface can simplify complex tasks.

    Take Windows Explorer where you can drag & drop multiple files from one folder to another.  The user sees which folders the files are going into, it takes a few seconds and boom!  Doing that by command line would be much more abstract, left alone much more...