Always loved JavaScript and client side scripting ( where appropriate <grin> ) – so when we had a new green field project to start, looked to what the best-in-class technologies were – settled on AngularJS (@angularjs). It is a client-side…
Category: Code
Remapping MySQL Workbench “Execute SQL” to F5
As a primarily Microsoft SQL Server developer, when playing around with MySQL database ( specifically using MySQL Workbench ) wanted to be able to press F5 to execute the SQL commands that I was writing, by default you need to…
momentjs + UTC date/time = browser local time
You should almost always store your date/times in your database as UTC – you may think it’s not important now, but as soon as your application needs to display times to users in different time zones ( to paraphrase Yoda…
jQuery 1.x && 2.x + MVC script bundling
In my blog “NuGet – Limiting updates for jQuery and Bootstrap” – we looked at continuing to utilize NuGet to keep us up to date on the latest jQuery 1.x version ( even though 2.x is out ). Reason being…
Entity Framework “Code First + Computed GETDATE()”
Need to setup a “Created” DateTime field in your SQL table that is auto-computed to add the current date and time that the field is inserted into the database? If you’re doing so in SQL – in the “Default Value…
NuGet – Limiting updates for jQuery and Bootstrap
I love to say “…if it’s not in NuGet, it’s DEAD to me…” – and for the most part that is very true. 🙂 If you don’t know what NuGet is – you MUST – look at Introducing NuGet: the…
Custom Configuration Pattern 102
So we will pick up from where we left off in “Custom Configuration Pattern 101” – we are looking to elegantly consume complex configuration settings in App.config and Web.config files – in this case we are looking to step up…
Custom Configuration Pattern 101
So if you’ve even needed to store custom data in your App.config or Web.config files before – you’ve probably used the ConfigurationManager.AppSettings for name/value pair data – but what if you have more complex settings that you want to store…
Entity Framework “Code First + Existing Database” 102
Last we saw our intrepid developers they were creating their first “Code First + Migrations” 101 project – today we join them facing the dreaded “we want to do code first, but already have an existing database!!!”. Can they survive?…
Elegantly Randomizing an IEnumerable Collection
Had the need to randomly shuffle an IEnumerable collection that I was bringing back through Entity Framework – so did some searching and came across a couple solutions – some that were completely crazy – but took the best ideas,…