Tag: C#

Introducing the .NET wrapper for the Sage One Accounting API

Introducing the .NET wrapper for the Sage One Accounting API

A while back my accountant convinced me to move our accounting package to Sage One Online. Not only am I very happy with the change, I’m also intrigued with their API, which enables developers to integrate with Sage One and perform a wide range of tasks . As a result […]

Create South African test data with NBuilder and Faker

Create South African test data with NBuilder and Faker

I’ve recently read an excellent article by Jerrie Pelser about using NBuilder and Faker.Net to generate test data for your .Net project – something I actually need on a regular basis. However, I needed data that looked a bit more South African so, I’ve added some South African flavour to […]

Create your own Visual Studio extensions with SideWaffle & TemplateBuilder

Create your own Visual Studio extensions with SideWaffle & TemplateBuilder

The SideWaffle Template pack for Visual Studio is great, but did you know you can also create your own template packs using the TemplateBuilder nuget package? In this post I’ll guide you through a step-by-step guide on how you can create your own Visual Studio extensions. It’s not that hard, […]

Creating a South African ID Number custom validation attribute for ASP.Net MVC

Creating a South African ID Number custom validation attribute for ASP.Net MVC

ASP.Net MVC gives you the option to create your own custom validation attributes in order to validate your models. I’ve recently needed such a validation attribute in order to check whether a valid South African ID Number was entered in a web form. I’ve stumbled upon a nice C# implementation […]

Office 365 – Attach files from SharePoint to Outlook E-mail programmatically

Office 365 – Attach files from SharePoint to Outlook E-mail programmatically

In my last post I showed you how you can write a Microsoft Outlook Add-in that will save all the attachments on an e-mail to the Office 365 SharePoint Online Shared Documents library. In today’s post I would like to show you how to do the opposite, e.g. how to […]

Office 365 – Share Outlook contacts with Lync Online contextual conversations

Office 365 – Share Outlook contacts with Lync Online contextual conversations

At first glance Microsoft Lync can, to most people, look like just another instant messaging application. However, upon closer inspection it can mean so much more for organizations especially if they start to integrate it into their current day-to-day business systems. For example, if you’re an insurance firm running a […]

Date and Time Functions in C#

Date and Time Functions in C#

A few nice date formats in C# http://www.daniweb.com/code/snippet184.html DateTime CurrTime = DateTime.Now; Console.WriteLine("DateTime display listing specifier and result:n"); Console.WriteLine("d = {0:d}", CurrTime ); // Short date mm/dd/yyyy Console.WriteLine("D = {0:D}", CurrTime ); // Long date day, month dd, yyyy Console.WriteLine("f = {0:f}", CurrTime ); // Full date/short time day, month […]

CSLA 3.6!

CSLA 3.6!

CSLA 3.6 introduces a host of new ways to do the things we used to do, one primary change is the use of LINQ and LINQ to SQL entities as your data layer. This change is pretty cool and the code reduction is even cooler! It is a bit of […]