Automapper 4.2 has marked the static API as obsolete so things should be done slightly differently than before as the … Continue reading Automapper 4.2 example
Organise ASP.MVC projects by feature by changing view location in MVC
I think it would be a safe bet to say most people stick with the default ASP.Net MVC folder structure … Continue reading Organise ASP.MVC projects by feature by changing view location in MVC
Adding a TXT DNS record on Blacknight to verify a site on Google Search Console
When verifying any of my sites for Google webmaster tools/search console etc. I usually just use the upload a file … Continue reading Adding a TXT DNS record on Blacknight to verify a site on Google Search Console
two way automapper mapping with child properties mapped too
Quite often in our development projects which use automapper we will not only want to convert an object A to an … Continue reading two way automapper mapping with child properties mapped too
Software development improvements from a recent sprint retrospective I participated in.
In my current contract the use of agile processes is relatively new to the organisation as a whole and certainly … Continue reading Software development improvements from a recent sprint retrospective I participated in.
WordPress preview post not working… quick workaround
WordPress preview post links not working? Sick of unsuccessfully trying different things you’ve found on Google like I was? Pretty much … Continue reading WordPress preview post not working… quick workaround
Trimming strings globally with automapper
Recently working on an application based on a legacy database with a lot of char data types I was using … Continue reading Trimming strings globally with automapper
ASP.MVC 6 razor tag helpers for more designer friendly view markup
I’m really liking a lot of the ASP.NET 5 stuff which is coming down the line. Cross platform capabilities are … Continue reading ASP.MVC 6 razor tag helpers for more designer friendly view markup
Config files specified in SQL Agent being overridden by design time package configuration
In work, our DEV and our UAT DB environments reside on the same box, but with their own SQL instances. We prefer to … Continue reading Config files specified in SQL Agent being overridden by design time package configuration
Google recaptcha firewall exception options
We’ve implemented Google recaptcha in one of our web apps which is nice and works fine on our local machines. … Continue reading Google recaptcha firewall exception options
Relative path to config file in BIDS/SSIS 2008 package configurations
As we know using absolute paths in our code can complicate things from a deployment point of view, so it’s … Continue reading Relative path to config file in BIDS/SSIS 2008 package configurations
What do senior developers do differently to other software developers?
Matt Briggs has recently wrote one of the best overviews of what it means to be a senior developer that I … Continue reading What do senior developers do differently to other software developers?
Discouraging use of the var keyword and ternary if operator
I would always favour typing more code to make it more explicit, more readable and to ensure consistency in style … Continue reading Discouraging use of the var keyword and ternary if operator
Improving performance of read only selects in entity framework by turning off tracking with AsNoTracking method
We had a new contractor start the other day in work and he brought to my attention the ability to … Continue reading Improving performance of read only selects in entity framework by turning off tracking with AsNoTracking method
Get all foreign keys constraints and cascade actions in SQL Server
Cascading deletes and updates are not for everyone and often they can cause problems or are better alternatives to using them. If … Continue reading Get all foreign keys constraints and cascade actions in SQL Server
Restore database backup programmatically with TSQL
I recently had a need to test a migration script which converted product IDs from one ERP to those of … Continue reading Restore database backup programmatically with TSQL
Scheduled WordPress backups with the UpdraftPlus plugin
Just installed UpdraftPlus to schedule backups of all my WordPress related content including of course the database but also the images, … Continue reading Scheduled WordPress backups with the UpdraftPlus plugin
Using Optimistic concurrency with Entity Framework over SQL Server
If you want to have a client-wins or last in wins approach to concurrency management you don’t have to do anything, … Continue reading Using Optimistic concurrency with Entity Framework over SQL Server
Setting up WordPress permalinks on a Blacknight Windows account with ISAPI Rewrite installed
If your hosting your site on a Blacknight shared windows hosting account, you’ll likely have either ISAPI Rewrite 2 or ISAPI Rewrite … Continue reading Setting up WordPress permalinks on a Blacknight Windows account with ISAPI Rewrite installed
Using MSBuild to publish a website just like in Visual Studio
Right clicking on a web project or a WCF project (others too I’m sure) in Visual Studio presents you with … Continue reading Using MSBuild to publish a website just like in Visual Studio
Can’t receive incoming remote connections to SQL Server database
I was having problems allowing some of my co-workers connect to the instance of SQL Server on my machine. Of course I … Continue reading Can’t receive incoming remote connections to SQL Server database
404s with ASP.MVC on IIS 7.5
I was getting page not found errors yesterday when trying to deploy an ASP.Net MVC website which of course worked … Continue reading 404s with ASP.MVC on IIS 7.5
How to check if a default constraint exists in SQL Server
Perhaps your scripting rollout and rollback DDL SQL changes and you want to check for instance if a default constraint … Continue reading How to check if a default constraint exists in SQL Server
Introduction to database indexes
If your database queries are taking an age and a half to execute you could do worse than investigate the … Continue reading Introduction to database indexes
Using a connectionStrings section connection with log4net now supported
Just upgraded to Version 1.2.11 of log4net due to the fact that one of the improvements in this version is … Continue reading Using a connectionStrings section connection with log4net now supported