Industry Insights from Our Experts

Tag Archives: .NET

LightSwitch Apps for SharePoint 2013 Rollup

Comments Off
Filed under Cloud Practice, LightSwitch, Productivity, SharePoint

Hey, I may be all about cloud computing these days, but my heart is still anchored in all that is LightSwitch. With the new Visual Studio 2013 Preview out, I’ve been a busy little beaver (okay, a busy big ol’ bear) with all that interesting LightSwitch stuff.


(image courtesy of Microsoft)

For what it’s worth, here is a bit of a web content rollup about creating LightSwitch applications in SharePoint (yes, most are from Microsoft):

Building Modern, HTML5-based Business Apps for SharePoint 2013 with Visual Studio LightSwitch

Building Modern, HTML5-based Business Apps for SharePoint 2013 with Visual Studio LightSwitch (same presentation, different presenter at TechEd 2013 Europe)

Walkthrough: Creating an App for SharePoint by Using LightSwitch

Walkthrough: Accessing a SharePoint Workflow from a LightSwitch Mobile App

Get Started Building SharePoint Apps in Minutes with LightSwitch

Sending Email from a LightSwitch SharePoint App using Exchange Online

Theming a LightSwitch SharePoint App with ThemeRoller (way cool!)

Publishing LightSwitch apps for SharePoint to the Catalog 

Survey App Tutorial: Developing a SharePoint Application Using LightSwitch

More to come I’m sure.

Hey, if you’re curious to learn more about LightSwitch, I’m your guy. Contact me and I’d more than happy to chat with you about how using LightSwitch can shave weeks, if not months, of your next line of business software project.


Paul P

Automapper Review

Comments Off
Filed under .NET, Productivity, Software Architecture

Automapper is a great tool we used in a recent project for mapping objects.  With the tiered architecture we used, we ended up with and MVC front end, and a web service back end.  This meant that there were web service objects and MVC models that had essentially the same structures, but .NET does not implicitely realize this.  What this often causes is code that looks like this:

person.FirstName = Webservice.Person.FirstName;
person.LastName = Webservice.Person.LastName;
person.Birthdate = Webservice.Person.Birthdate;
person.Address = Webservice.Person.Address;
person.PhoneNumber = Webservice.Person.PhoneNumber;
person.Gender = Webservice.Person.Gender;

We’ve all seen this code and to the human eye it looks repetitive, but to a machine it is necessary.  This is where automapper comes in.  It simplifies this process and turns the above code into this:

person = PersonMapper.Map(Webservice.Person);

Having your objects sharing identical field names makes your life a lot easier.  You can install Automapper from NuGet and have it working right away.  Just create a new class and include the automapper library..  Your method signature will look something like this:

public static Models.Person Map(MemberServices.Person person)
   return Mapper.Map(person);

That’s it!  You can call your .Map function from now on and Automapper will handle the rest.


This is of course a very simple example that all Automapper can do for you.  In the case where you do not have identically named fields, you can configure Automapper to map to fields of different names.  You’re also able to map entire arrays if need be to save yourself work on those redundant copy loops.


For more information on AutoMapper and to get started, click here


Microsoft LightSwitch – HTML5 Client

Comments Off
Filed under .NET, LightSwitch

Oh Yeah!

Just when you got over the excitement of LightSwitch’s oData support, Microsoft has announced upcoming LightSwitch support for HTML5 JavaScript based clients!

Read More »

Article source: http://www.paulspatterson.com/technology/lightswitch/microsoft-lightswitch-html5-client/

Windows Communication Foundation Security Must Reads

Comments Off
Filed under .NET, Software Architecture

I’ve been on a bit of a Windows Communication Foundation (WCF) security kick lately. Maybe because of all the Azure and cloud based development we’ve been doing here at Quercus Solutions.

Here are my top reads for all things WCF Security (so far):

  1. Windows Communication Foundation (WCF) Basic Programming Lifecycle : http://msdn.microsoft.com/en-us/library/ms732098
     - Note section titled Parameters and Return Values : Data Contracts
  2. Securing Services and Clients : http://msdn.microsoft.com/en-us/library/ms734736
  3. Message Security in WCF : http://msdn.microsoft.com/en-us/library/ms733137.aspx
  4. How to: Use Transport Security and Message Credentials : http://msdn.microsoft.com/en-us/library/ms789011
  5. Microsoft Patterns and Practices – Improving Web Services Security Guide : http://wcfsecurityguide.codeplex.com/wikipage?title=Ch%2007%20-%20Message%20and%20Transport%20Security%20in%20WCF-
    - Note the Protection Level section for ServiceContract the attributes.
    - Pay attention to the Internet Scenarios section.

Also, another great reference: http://wcfsecurityguide.codeplex.com/






Microsoft LightSwitch – Sending Emails From the Client

Comments Off
Filed under .NET, LightSwitch, Productivity

Most of you may have already read an earlier post on how to send emails from LightSwitch (seen here). This post extends what was learned in that previous post, and shows how to wire up a button to send an email on demand.That previous post showed a specific function that would send out an email when an entity was added to the database. A helper class was created in the Server project of the LightSwitch solution. Then, when the new record was created in the database, that server code was called and an email went out. Here is how  I did that… Read More »

Article source: http://www.paulspatterson.com/technology/lightswitch/microsoft-lightswitch-sending-emails-from-the-client/

Microsoft LightSwitch – Championing the Citizen Developer

Comments Off
Filed under .NET, LightSwitch, Productivity

I recently watched a great webcast by Rich Dudley in which Rich made some very interesting points about what Gartner Research calls “Citizen Developers”. I was immediately intrigued by this Gartner information so I dug a little deeper into this citizen developer thing, and here is what I found…

According to Gartner, “Citizen developers will be building at least a quarter of new business applications by 2014…”.  That, according to the report titled “Citizen Developers Are Poised to Grow”.

Represented by about 6 million information workers, these “latent” application developers make up that same Microsoft Visual Studio LightSwitch target market.

Very interesting, indeed!



Article source: http://www.paulspatterson.com/technology/lightswitch/microsoft-lightswitch-championing-the-citizen-developer/

An Introduction to LightSwitch – Edmonton Dot Net User Group Presentation – September 12, 2011

Comments Off
Filed under .NET, LightSwitch

On September 12th I presented an introduction to Microsoft Visual Studio LightSwitch 2011 to the Edmonton Dot Net User Group (EDMUG.Net).

Here is a link to the slide deck and take-away notes from the presentation…




Application Types

Comments Off
Filed under .NET, Software Architecture

Yes, a rich internet based web application would be awesome, but is it really what you need? I would love to own a new Porsche 911, but not if I am using it to haul around building supplies for my construction company (unless it was balsa wood, maybe).

Just like using the right vehicle for the job, so should you be using the right software application for the right job. Here is an overview of the different application types that exist today, and some information about each to help you better understand your options when considering a new software application… Read More »

Copyright 2017 by Quercus Solutions