powered by Slim Framework
enhanced by Nesbot.com

ASP.NET: Entity Framework's Code-First with an ObjectContext

Published on Apr 30, 2012 by Jamie Munro

If the following blog interests you, it's probably because you're using Entity Framework with a Code-First approach and whatever it is you are trying to do *must* use an ObjectContext instead of the standard DbContext.  I'm sure, like me, you thought this shouldn't be too hard.  Then you started hitting roadblocks like, Metadata is required in your connection string.  What's metadata?  This is only needed in Database-First so you can tell the framework where your edmx and other definition files are, so why do I need this with Code-First, I don't have these files?

This was definitely my first reaction as well.  So after much trial-and-error and research, I have the solution!

Read more >

Tags: ASP.NET | mvc3 | entityframework | objectcontext | dbcontext

CSS3: Creating Diagonal Lines

Published on Mar 19, 2012 by Jamie Munro

The hr tag has been around for quite some time to provide a nice horizontal line to visually separate content.  To achieve a vertical line, it's typically been accomplished via border-left or border-right.  However, this is when you can get into height issues or columns that don't extend the whole way, etc…  Instead CSS3 allows for the rotation of elements and allow for vertical or diagonal lines to be created with some basic CSS.

Read more >

Tags: css3 | CSS

MSSQL/MySQL: Delete Duplicate Rows in a Table

Published on Mar 12, 2012 by Jamie Munro

No more must you think about how to find a clean way to delete duplicate records in your database table.  The following article will provide a single SQL query that will delete rows that are duplicated in your table.  Before you begin, be sure you've tracked down the bad code that is causing this; otherwise, you will need to run it multiple times!

Read more >

Tags: Database | MSSQL | MySQL

CSS3: Rotating DOM Elements

Published on Mar 5, 2012 by Jamie Munro

As more and more browsers support HTML5 and more importantly CSS3, it begins to allow us much more freedom using standard text without the need of images.  Not only does this speed up page load times, it also lowers bandwidth costs as well.  Using CSS3, many standard DOM (Document Object Model) objects can easily be rotated, such as: images, text, block elements, etc…

Read more >

Tags: css3 | CSS

MySQL: Concatenate Multiple Rows From a Table Into One Field

Published on Feb 27, 2012 by Jamie Munro

This is an excellent little trick that will save some processing time by a server-side language having to loop through the data to achieve the same result.  In this article, I am going to demonstrate how you can merge multiple rows into one field separated by a specific character.

Read more >

Tags: Database | MySQL

CSS3: Creating a Background Gradient

Published on Jan 23, 2012 by Jamie Munro

jQuery: Creating Your Own Selector

Published on Jan 16, 2012 by Jamie Munro

jQuery: Implementing a callback

Published on Dec 19, 2011 by Jamie Munro

HTML5: Displaying a Progress Bar

Published on Nov 7, 2011 by Jamie Munro

CSS: Fixed Position Content

Published on Oct 3, 2011 by Jamie Munro

CSS3: Attribute Selectors

Published on Sep 19, 2011 by Jamie Munro

CSS3: Custom Fonts using @font-face

Published on Aug 29, 2011 by Jamie Munro