N-tier Entity Framework and debugging WCF problems

January 29, 2012 admin c#

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 [...]

More

0

Entity Framework 4.1, Repository and Specification patterns

December 21, 2011 admin c#

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 [...]

More

0

New Blog!

December 15, 2011 admin Uncategorized

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, [...]

More

0

NCover, NUnit and CLR 4.0

September 9, 2011 admin Build Process

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 [...]

More

0

Using Facebook for Authentication

September 5, 2011 admin Facebook

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 [...]

More

0

Neuron ESB – connecting a legacy system

July 27, 2011 admin Uncategorized

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 [...]

More

0

Using Neuron ESB – First impressions

July 19, 2011 admin Uncategorized

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 [...]

More

0

Installing multiple TeamCity agents on the same machine

May 17, 2011 admin Build Process

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 [...]

More

0

jQuery Grid/Dialog framework

May 13, 2011 admin Javascript

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.  [...]

More

0

Updating SELECT selectedindex not changing the text

May 2, 2011 admin Javascript

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 [...]

More

0

« Previous Posts

Powered by WordPress. Designed by elogi.