N-tier Entity Framework and debugging WCF problems
Our latest project involves a number of different app clients, for example Web, Phone, Tablet, Facebook app etc. This calls for an n-tier architecture, where we split the code base into logical modules. We can then swap in a different application client and re-use all of the same business and data access code. The architecture [...]
Entity Framework 4.1, Repository and Specification patterns
Working on a new long-term project, and we need a data access layer that will be extensible over a number of years. There are plenty of resources available for the Repository and Specification patterns, although each one seems to be slightly different. So keeping with tradition I’ll take you through my version! I want two [...]
New Blog!
Things have been pretty manic (again) recently. The months up to Christmas tend to be very busy and I’ve been busy on a lot of sites and Facebook apps for companies’ festive campaigns. That said I thought the blog was looking a little old fashioned, being built on DasBlog which, while solid at the time, [...]
NCover, NUnit and CLR 4.0
We’ve just got round to adding NCover and Unit Test support for a CLR 4.0 project in TeamCity. In order to get NCover to run, I use the following command: NCover.Console.exe “C:\Program Files (x86)\NUnit 2.5.5\bin\net-2.0\nunit-console-x86.exe” C:\temp\WebService\DataLib.Nunit.Tests\bin\Debug\DataLib.NUnit.Tests.dll //h C:\BuildAgentXXX\work\df926efbb473700f\NCoverReport //l “C:\Program Files (x86)\NUnit 2.5.5\bin\net-2.0\Coverage.log” //w “C:\Program Files (x86)\NUnit 2.5.5\bin\net-2.0″ //x “C:\Program Files (x86)\NUnit 2.5.5\bin\net-2.0\Coverage.xml” The files [...]
Using Facebook for Authentication
Rather than come up with our own username/password registration for a site, we decided to take advantage of OAuth to allow users to log in with their Facebook account. We can then build a web service that will give third parties access to our app’s data. The third party site will prompt the user to [...]
Neuron ESB – connecting a legacy system
In my previous post I covered how to publish messages onto Neuron ESB from a legacy system, but now what? The message is on the bus but how to do anything with it? In this case, we want to simply broadcast the message to interested parties, and it is then up to each individual domain [...]
Using Neuron ESB – First impressions
I’ve been looking at how best to integrate a number of large enterprise systems into one cohesive whole, and given the requirements of the project think that an Event-driven Service Oriented Architecture (sometimes referred to as “SOA 2.0″) solution is the way forward. An event-driven solution involves messages (events) being passed between the different domains [...]
Installing multiple TeamCity agents on the same machine
Installing multiple agents is not a case of running the installer multiple times. What was happening (Windows Server 2008, TeamCity 5.x) was that the last one to install was overwriting the old service – so there was only ever one agent available. What I did was uninstall all agents, and remove them from the Agents [...]
jQuery Grid/Dialog framework
Recently I’ve been working on a database project, a pretty basic data entry app. First I thought of using LightSwitch, and then realised (quickly) that it was rubbish, so had to do it the hard way. I wanted a Master/Detail view but felt that if it was implemented via post-backs this was a bit cumbersome. [...]
Updating SELECT selectedindex not changing the text
I was having a problem earlier trying to programatically update a SELECT’s selected option. The option was being updated successfully, but the text wasn’t changing. Odd, I thought, I know the following works:$(‘#selectCountry’).val(hardwareItem.CountryID); I am using the very awesome Uniform plugin to skin my controls, and wondered it that could interfere with it. Yes, it [...]
Blog